From db13362e861328a340e0cc34dbef96f24fc31834 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 9 Sep 2021 15:52:51 +0300 Subject: [PATCH] core: marshal Block.Nonce in upper-case hex --- pkg/core/block/header.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/block/header.go b/pkg/core/block/header.go index b7f78744f..154d512d9 100644 --- a/pkg/core/block/header.go +++ b/pkg/core/block/header.go @@ -157,7 +157,7 @@ func (b Header) MarshalJSON() ([]byte, error) { PrevHash: b.PrevHash, MerkleRoot: b.MerkleRoot, Timestamp: b.Timestamp, - Nonce: fmt.Sprintf("%016x", b.Nonce), + Nonce: fmt.Sprintf("%016X", b.Nonce), Index: b.Index, PrimaryIndex: b.PrimaryIndex, NextConsensus: address.Uint160ToString(b.NextConsensus),