From 6713629fb815ef9936fb0850ed867e82ecced422 Mon Sep 17 00:00:00 2001 From: wanwiset25 Date: Thu, 9 May 2024 10:42:50 +0400 Subject: [PATCH] change encoding and key to match xdpos --- consensus/XDPoS/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/XDPoS/api.go b/consensus/XDPoS/api.go index 5b1b9e22d..f85ddfa6f 100644 --- a/consensus/XDPoS/api.go +++ b/consensus/XDPoS/api.go @@ -16,7 +16,7 @@ package XDPoS import ( - "encoding/hex" + "encoding/base64" "math/big" "github.com/XinFinOrg/XDC-Subnet/common" @@ -42,7 +42,7 @@ type V2BlockInfo struct { Committed bool Miner common.Hash Timestamp *big.Int - HexRLP string + EncodedRLP string Error string } @@ -215,7 +215,7 @@ func (api *API) GetV2BlockByHeader(header *types.Header, uncle bool) *V2BlockInf Committed: committed, Miner: header.Coinbase.Hash(), Timestamp: header.Time, - HexRLP: hex.EncodeToString(encodeBytes), + EncodedRLP: base64.StdEncoding.EncodeToString(encodeBytes), } return block }