From 7480cc1b667055c2fa1861824210d998552aaaf6 Mon Sep 17 00:00:00 2001 From: Paladz Date: Tue, 10 Apr 2018 13:22:03 +0800 Subject: [PATCH 1/2] fix coinbase tx lens bug (#567) --- mining/mining.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mining/mining.go b/mining/mining.go index 8d06d3d34..1771e0130 100644 --- a/mining/mining.go +++ b/mining/mining.go @@ -50,6 +50,12 @@ func createCoinbaseTx(accountManager *account.Manager, amount uint64, blockHeigh return } + byteData, err := txData.MarshalText() + if err != nil { + return + } + txData.SerializedSize = uint64(len(byteData)) + tx = &types.Tx{ TxData: *txData, Tx: types.MapTx(txData), From 8ec6fc739d9a27c380eca8e1917492cd74ce3886 Mon Sep 17 00:00:00 2001 From: paladz <453256728@qq.com> Date: Tue, 10 Apr 2018 13:51:47 +0800 Subject: [PATCH 2/2] update verion --- version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index 122c7c44e..ccb5ec9a7 100644 --- a/version/version.go +++ b/version/version.go @@ -2,7 +2,7 @@ package version var ( // The full version string - Version = "0.4.3" + Version = "0.4.4" // GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)" GitCommit string )