mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 01:23:45 +00:00
more tests for remote update
This commit is contained in:
parent
ccda1aacb4
commit
fee9aecfb2
1 changed files with 8 additions and 0 deletions
|
|
@ -78,4 +78,12 @@ func TestRemoteNonceChange(t *testing.T) {
|
|||
if nonce != 200 {
|
||||
t.Error("expected nonce after remote update to be", 201, "got", nonce)
|
||||
}
|
||||
ms.NewNonce(addr)
|
||||
ms.NewNonce(addr)
|
||||
ms.NewNonce(addr)
|
||||
ms.StateDB.stateObjects[string(addr)].nonce = 200
|
||||
nonce = ms.NewNonce(addr)
|
||||
if nonce != 204 {
|
||||
t.Error("expected nonce after remote update to be", 201, "got", nonce)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue