rpc: fix getstateheight result compatibility
C#: "result" : { "localrootindex" : 11623, "validatedrootindex" : 11623 } Go: "result" : { "blockHeight" : 11627, "stateHeight" : 11627 }
This commit is contained in:
parent
a8a6c8c13d
commit
a188d20fd1
3 changed files with 6 additions and 6 deletions
|
@ -324,8 +324,8 @@ var rpcTestCases = map[string][]rpcTestCase{
|
|||
sh, ok := res.(*result.StateHeight)
|
||||
require.True(t, ok)
|
||||
|
||||
require.Equal(t, e.chain.BlockHeight(), sh.BlockHeight)
|
||||
require.Equal(t, uint32(0), sh.StateHeight)
|
||||
require.Equal(t, e.chain.BlockHeight(), sh.Local)
|
||||
require.Equal(t, uint32(0), sh.Validated)
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue