提交 fee9aecf 编写于 作者: O obscuren

more tests for remote update

上级 ccda1aac
......@@ -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)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册