diff options
| author | Ross Nicoll <[email protected]> | 2017-04-18 13:36:32 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-06-02 10:37:16 +0100 |
| commit | 3afaf906f1d7b2717d3326d487a5daf77126ec24 (patch) | |
| tree | 57c51934f9fa5537b80fca8431a7ed4fbf6a8ccc /test/functional/feature_block.py | |
| parent | crypto: Add scrypt N=1024 PoW (diff) | |
| download | discoin-3afaf906f1d7b2717d3326d487a5daf77126ec24.tar.xz discoin-3afaf906f1d7b2717d3326d487a5daf77126ec24.zip | |
Replace consensus values with Dogecoin equivalents
* Replace chain parameters with Dogecoin values
* Update maximum coins to match Dogecoin
* Disable version 2 block requirement
* Update coinbase maturity to match Dogecoin
Diffstat (limited to 'test/functional/feature_block.py')
| -rwxr-xr-x | test/functional/feature_block.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/feature_block.py b/test/functional/feature_block.py index a7be34bf8..a6bedd465 100755 --- a/test/functional/feature_block.py +++ b/test/functional/feature_block.py @@ -589,6 +589,7 @@ class FullBlockTest(BitcoinTestFramework): height = self.block_heights[self.tip.sha256] + 1 coinbase = create_coinbase(height, self.coinbase_pubkey) b44 = CBlock() + b44.nVersion = 0x620004 b44.nTime = self.tip.nTime + 1 b44.hashPrevBlock = self.tip.sha256 b44.nBits = 0x207fffff @@ -603,6 +604,7 @@ class FullBlockTest(BitcoinTestFramework): self.log.info("Reject a block with a non-coinbase as the first tx") non_coinbase = self.create_tx(out[15], 0, 1) b45 = CBlock() + b45.nVersion = 0x620004 b45.nTime = self.tip.nTime + 1 b45.hashPrevBlock = self.tip.sha256 b45.nBits = 0x207fffff @@ -618,6 +620,7 @@ class FullBlockTest(BitcoinTestFramework): self.log.info("Reject a block with no transactions") self.move_tip(44) b46 = CBlock() + b46.nVersion = 0x620004 b46.nTime = b44.nTime + 1 b46.hashPrevBlock = b44.sha256 b46.nBits = 0x207fffff @@ -634,7 +637,7 @@ class FullBlockTest(BitcoinTestFramework): self.move_tip(44) b47 = self.next_block(47) target = uint256_from_compact(b47.nBits) - while b47.sha256 <= target: + while b47.scrypt256 <= target: # Rehash nonces until an invalid too-high-hash block is found. b47.nNonce += 1 b47.rehash() |