Merge pull request #67 from VerusCoin/dev

Use portable hash for staking
This commit is contained in:
Asher Dawes 2018-06-19 11:46:53 -07:00 committed by GitHub
commit e64b7687de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,7 +476,7 @@ public:
// verus hash will be the same for a given txid, output number, block height, and blockhash of 100 blocks past // verus hash will be the same for a given txid, output number, block height, and blockhash of 100 blocks past
static uint256 _GetVerusPOSHash(const uint256 &txid, int32_t voutNum, int32_t height, const uint256 &pastHash, int64_t value) static uint256 _GetVerusPOSHash(const uint256 &txid, int32_t voutNum, int32_t height, const uint256 &pastHash, int64_t value)
{ {
CVerusHashWriter hashWriter = CVerusHashWriter(SER_GETHASH, PROTOCOL_VERSION); CVerusHashPortableWriter hashWriter = CVerusHashPortableWriter(SER_GETHASH, PROTOCOL_VERSION);
hashWriter << ASSETCHAINS_MAGIC; hashWriter << ASSETCHAINS_MAGIC;
hashWriter << pastHash; hashWriter << pastHash;