diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-11-14 22:59:31 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-11-14 22:59:31 +0800 |
commit | 6c9c1e6712d684e782a8920dac0173b49257fa1f (patch) | |
tree | 2df35d4512681aa600e0270e176829bcca49482d /core/blockchain_test.go | |
parent | ca73dea3b9bcdf3b5424b5c48c70817439e2e304 (diff) | |
download | go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.gz go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.bz2 go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.lz go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.xz go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.tar.zst go-tangerine-6c9c1e6712d684e782a8920dac0173b49257fa1f.zip |
core, core/types: refactored tx chain id checking
Refactored explicit chain id checking in to the Sender deriviation method
Diffstat (limited to 'core/blockchain_test.go')
-rw-r--r-- | core/blockchain_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/blockchain_test.go b/core/blockchain_test.go index dae857f01..934ae74e1 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -1226,11 +1226,8 @@ func TestEIP155Transition(t *testing.T) { block.AddTx(tx) } }) - errExp := "Invalid transaction chain id. Current chain id: 1 tx chain id: 2" _, err := blockchain.InsertChain(blocks) - if err == nil { - t.Error("expected transaction chain id error") - } else if err.Error() != errExp { - t.Error("expected:", errExp, "got:", err) + if err != types.ErrInvalidChainId { + t.Error("expected error:", types.ErrInvalidChainId) } } |