diff options
| author | Ross Nicoll <[email protected]> | 2018-01-20 17:56:53 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2018-09-19 22:11:47 +0100 |
| commit | b6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae (patch) | |
| tree | 0d36b3a80575ee685b4760a3cd1e4fa6f7223e4a /qa/rpc-tests/getchaintips.py | |
| parent | Replace HMAC_SHA256 with Bitcoin's version (#1438) (diff) | |
| download | discoin-b6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae.tar.xz discoin-b6b5ee7502bf646bcd97a9f8fe1b0b8d78e3c9ae.zip | |
Update RPC tests for Dogecoin (#1431)
* Make most of the RPC tests pass
* Add AUXPoW rpc tests
- Tests the auxpow rpc interface `getauxblock`
- Tests consensus constraints for auxpow:
- Minimum block height
- Valid scrypt proof of work
- Foreign chain ID
Diffstat (limited to 'qa/rpc-tests/getchaintips.py')
| -rwxr-xr-x | qa/rpc-tests/getchaintips.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/getchaintips.py b/qa/rpc-tests/getchaintips.py index 1c66b8c28..7099bfd49 100755 --- a/qa/rpc-tests/getchaintips.py +++ b/qa/rpc-tests/getchaintips.py @@ -21,7 +21,7 @@ class GetChainTipsTest (BitcoinTestFramework): tips = self.nodes[0].getchaintips () assert_equal (len (tips), 1) assert_equal (tips[0]['branchlen'], 0) - assert_equal (tips[0]['height'], 200) + assert_equal (tips[0]['height'], 120) assert_equal (tips[0]['status'], 'active') # Split the network and build two chains of different lengths. @@ -34,14 +34,14 @@ class GetChainTipsTest (BitcoinTestFramework): assert_equal (len (tips), 1) shortTip = tips[0] assert_equal (shortTip['branchlen'], 0) - assert_equal (shortTip['height'], 210) + assert_equal (shortTip['height'], 130) assert_equal (tips[0]['status'], 'active') tips = self.nodes[3].getchaintips () assert_equal (len (tips), 1) longTip = tips[0] assert_equal (longTip['branchlen'], 0) - assert_equal (longTip['height'], 220) + assert_equal (longTip['height'], 140) assert_equal (tips[0]['status'], 'active') # Join the network halves and check that we now have two tips |