rpc: update for API and protobuf changes

This commit is contained in:
George Tankersley
2018-12-04 18:21:53 -05:00
parent dda5dffe6b
commit 38d61b509c
16 changed files with 209 additions and 190 deletions

View File

@@ -54,7 +54,7 @@ func TestSqliteStorage(t *testing.T) {
}
height := block.GetHeight()
hash := hex.EncodeToString(block.GetHash())
hash := hex.EncodeToString(block.GetDisplayHash())
hasSapling := block.HasSaplingTransactions()
protoBlock := block.ToCompact()
version := 1
@@ -93,7 +93,7 @@ func TestSqliteStorage(t *testing.T) {
t.Error(errors.Wrap(err, "retrieving stored block"))
}
if int(retBlock.BlockID.BlockHeight) != lastBlockTest.BlockHeight {
if int(retBlock.Height) != lastBlockTest.BlockHeight {
t.Error("incorrect retrieval")
}