Page MenuHomePhabricator

Enforce that a large block is produced when the HF triggers
ClosedPublic

Authored by deadalnix on Jun 14 2017, 13:33.

Details

Summary

This is as per spec. The first block of the HF must be larger than 1MB in order to avoid reorg.

Test Plan
make check

Added integration tests to check for the proper activation of the fork.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

qa/rpc-tests/abc-p2p-activation.py
272 ↗(On Diff #465)

You should attempt this more than once IMO, just to verify that it cannot be overcome after first too-small block.

qa/rpc-tests/abc-p2p-fullblocktest.py
215 ↗(On Diff #465)

This comment seems like it was meant for bfork further down.
block(0) is initialized to current machine time + 1s , not to HF start time, as per the change introduced in next_block()...

This revision is now accepted and ready to land.Jun 14 2017, 22:32
This revision was automatically updated to reflect the committed changes.