diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-04 22:35:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-04 22:35:23 +0800 |
commit | e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc (patch) | |
tree | fcbb59358cab8df4e6aa005e22e5e9a22edcb5b4 /core/block_processor_test.go | |
parent | 29f120206e16f80176a0cb309162cc7f889be0b0 (diff) | |
download | go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.gz go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.zst go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.zip |
Improved chain manager, improved block processor, fixed tests
* ChainManager allows cached future blocks for later processing
* BlockProcessor allows a 4 second window on future blocks
* Fixed tests
Diffstat (limited to 'core/block_processor_test.go')
-rw-r--r-- | core/block_processor_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/block_processor_test.go b/core/block_processor_test.go index 64add7e8b..02524a4c1 100644 --- a/core/block_processor_test.go +++ b/core/block_processor_test.go @@ -22,10 +22,11 @@ func TestNumber(t *testing.T) { bp, chain := proc() block1 := chain.NewBlock(common.Address{}) block1.Header().Number = big.NewInt(3) + block1.Header().Time-- err := bp.ValidateHeader(block1.Header(), chain.Genesis().Header()) if err != BlockNumberErr { - t.Errorf("expected block number error") + t.Errorf("expected block number error %v", err) } block1 = chain.NewBlock(common.Address{}) |