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), 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 )