From c885420f389e8284edad1715143a6d0638183a24 Mon Sep 17 00:00:00 2001 From: jiangzehua <1092431698@qq.com> Date: Mon, 25 Sep 2023 19:07:06 +0800 Subject: [PATCH] fix(bpos): deserialize withdraw map correctly --- README.md | 4 ++-- dpos/state/keyframe.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e86e6cd12..b6f99cd51 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ $ sudo apt-get install -y git Install Go distribution. ```bash -$ curl -O https://golang.org/dl/go1.13.15.linux-amd64.tar.gz -$ tar -xvf go1.13.15.linux-amd64.tar.gz +$ curl -O https://golang.org/dl/go1.20.3.linux-amd64.tar.gz +$ tar -xvf go1.20.3.linux-amd64.tar.gz $ sudo chown -R root:root ./go $ sudo mv go /usr/local $ export GOPATH=$HOME/go diff --git a/dpos/state/keyframe.go b/dpos/state/keyframe.go index 4f16501c0..19cedfc93 100644 --- a/dpos/state/keyframe.go +++ b/dpos/state/keyframe.go @@ -510,6 +510,7 @@ func (p *StateKeyFrame) deserializeWithdrawableTransactionsMap(r io.Reader) ( if err = withdrawInfo.Deserialize(r); err != nil { return } + withdrawableTxsMap[hash] = withdrawInfo } return }