From 51aba2cfa286da0e90f04ed7dfec97678a520bd2 Mon Sep 17 00:00:00 2001
From: havenprotocol <havencurrency@gmail.com>
Date: Thu, 5 Apr 2018 03:59:45 +1200
Subject: [PATCH] Add support for Haven (XHV) using CryptoNight Heavy

---
 README.md         | 1 +
 xmrstak/jconf.cpp | 1 +
 xmrstak/pools.tpl | 1 +
 3 files changed, 3 insertions(+)

diff --git a/README.md b/README.md
index 047aa51..19c5912 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,7 @@ Besides [Monero](https://getmonero.org), following coins can be mined using this
 - [Edollar](https://edollar.cash)
 - [Electroneum](https://electroneum.com)
 - [Graft](https://www.graft.network)
+- [Haven](https://havenprotocol.com)
 - [Intense](https://intensecoin.com)
 - [Karbo](https://karbo.io)
 - [Sumokoin](https://www.sumokoin.org)
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index f99698a..8707a03 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -102,6 +102,7 @@ xmrstak_coin_algo coin_algos[] = {
 	{ "edollar", cryptonight, cryptonight, 0u, nullptr },
 	{ "electroneum", cryptonight, cryptonight, 0u, nullptr },
 	{ "graft", cryptonight, cryptonight, 0u, nullptr },
+	{ "haven", cryptonight_heavy, cryptonight, 2u, nullptr },
 	{ "intense", cryptonight, cryptonight, 0u, nullptr },
 	{ "karbo", cryptonight, cryptonight, 0u, nullptr },
 	{ "monero7", cryptonight_monero, cryptonight, 7u, "pool.usxmrpool.com:3333" },
diff --git a/xmrstak/pools.tpl b/xmrstak/pools.tpl
index f5afff6..f5572d8 100644
--- a/xmrstak/pools.tpl
+++ b/xmrstak/pools.tpl
@@ -26,6 +26,7 @@ POOLCONF],
  *    edollar
  *    electroneum
  *    graft
+ *    haven
  *    intense
  *    karbo
  *    monero7 (use this for Monero's new PoW)
-- 
GitLab