[qa] Test nMinimumChainWork
commiteac64bb7a3b6aba747403b23b3b1d3609843f8db
authorSuhas Daftuar <sdaftuar@gmail.com>
Mon, 8 May 2017 13:59:00 +0000 (8 09:59 -0400)
committerSuhas Daftuar <sdaftuar@chaincode.com>
Tue, 5 Sep 2017 19:09:21 +0000 (5 15:09 -0400)
treecb377213d70ad814703aac9f8ba79a87b2747cdc
parent0311836f6927aec4ba5687ea12af35df3c509682
[qa] Test nMinimumChainWork

Nodes don't consider themselves out of "initial block download" until
their active chain has more work than nMinimumChainWork.

While in initial block download, nodes won't relay blocks to their
peers, so test that this parameter functions as intended by verifying
that block relay only succeeds past a given node once its
nMinimumChainWork has been exceeded.
test/functional/minchainwork.py [new file with mode: 0755]
test/functional/test_runner.py