chain: reset consensus params on assert fail
This commit is contained in:
parent
4bc0bb2366
commit
49143b2c16
@ -835,12 +835,14 @@ describe('Chain', function() {
|
|||||||
|
|
||||||
consensus.MAX_MONEY = tx1.getFee() + tx2.getFee() - 1;
|
consensus.MAX_MONEY = tx1.getFee() + tx2.getFee() - 1;
|
||||||
|
|
||||||
job.refresh();
|
try {
|
||||||
assert.strictEqual(await mineBlock(job),
|
job.refresh();
|
||||||
'bad-txns-accumulated-fee-outofrange');
|
assert.strictEqual(await mineBlock(job),
|
||||||
|
'bad-txns-accumulated-fee-outofrange');
|
||||||
consensus.MAX_MONEY = 21000000 * consensus.COIN;
|
} finally {
|
||||||
Selector.MAX_FEE = consensus.COIN / 10;
|
consensus.MAX_MONEY = 21000000 * consensus.COIN;
|
||||||
|
Selector.MAX_FEE = consensus.COIN / 10;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should mine 111 multisig blocks', async () => {
|
it('should mine 111 multisig blocks', async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user