diff --git a/pkg/rpc/response/result/block.go b/pkg/rpc/response/result/block.go index b1cadb605..a074021fb 100644 --- a/pkg/rpc/response/result/block.go +++ b/pkg/rpc/response/result/block.go @@ -48,7 +48,7 @@ func NewBlock(b *block.Block, chain core.Blockchainer) Block { Base: &b.Base, BlockMetadataAndTx: BlockMetadataAndTx{ Size: io.GetVarSize(b), - Confirmations: chain.BlockHeight() - b.Index - 1, + Confirmations: chain.BlockHeight() - b.Index + 1, Tx: make([]Tx, 0, len(b.Transactions)), }, }