Skip to content

Commit

Permalink
solve block height mismatch when reindexing, add copyright and licens…
Browse files Browse the repository at this point in the history
…e statements
  • Loading branch information
bitcoinnano committed Jan 9, 2018
1 parent 5baed79 commit 9d9d5f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class CMainParams : public CChainParams {
strNetworkID = "main";
consensus.nSubsidySlowStartInterval = 4370; // slow start mining in roughly a month
consensus.nSubsidyHalvingInterval = 210000;
consensus.BIP34Height = 0;
consensus.BIP34Hash = uint256S("0x0000df4314780c0ea37b77eeccbc184330707b95bc0c080f2c4707d642f12a04");
consensus.BIP34Height = 1;
consensus.BIP34Hash = uint256S("0x0001581d802a414be66618e6ae6fbc39f5d616221ec2f9ea3d1f469fc08fc298");
consensus.BIP65Height = 0;
consensus.BIP66Height = 0;
consensus.antiReplayOpReturnSunsetHeight = 530000;
Expand Down
7 changes: 7 additions & 0 deletions src/pow/nano.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017-2018 The Bitcoin Nano developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "miner.h"
#include "arith_uint256.h"
#include "pow/tromp/equi_miner.h"
Expand All @@ -12,6 +18,7 @@
#include "arith_uint256.h"
#include <fstream>

// partly copied from https://github.com/zcash/zcash/blob/master/src/miner.cpp#L581
bool equihash_(std::string solver, CBlock *pblock, int n, int k)
{
arith_uint256 hashTarget = arith_uint256().SetCompact(pblock->nBits);
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static UniValue help(Config &config, const JSONRPCRequest &jsonRequest) {
"\nArguments:\n"
"1. \"command\" (string, optional) The command to get help on\n"
"\nResult:\n"
"\"text\" (string 2018/1/1) The help text\n");
"\"text\" (string 2018/1/9) The help text\n");

std::string strCommand;
if (jsonRequest.params.size() > 0)
Expand Down

0 comments on commit 9d9d5f5

Please sign in to comment.