Official Go implementation of the Bytom protocol
Revision | fa4a9dd35236f4c89c3b9861cf1b1a93531fd21d (tree) |
---|---|
Zeit | 2018-04-10 16:10:12 |
Autor | Yongfeng LI <wliyongfeng@gmai...> |
Commiter | GitHub |
@@ -32,9 +32,8 @@ func FinalizeTx(ctx context.Context, c *protocol.Chain, tx *types.Tx) error { | ||
32 | 32 | if err != nil { |
33 | 33 | return err |
34 | 34 | } |
35 | - if err := tx.UnmarshalText(data); err != nil { | |
36 | - return err | |
37 | - } | |
35 | + tx.TxData.SerializedSize = uint64(len(data)) | |
36 | + tx.Tx.SerializedSize = uint64(len(data)) | |
38 | 37 | |
39 | 38 | _, err = c.ValidateTx(tx) |
40 | 39 | if errors.Root(err) == protocol.ErrBadTx { |
@@ -2,7 +2,7 @@ package version | ||
2 | 2 | |
3 | 3 | var ( |
4 | 4 | // The full version string |
5 | - Version = "0.4.4" | |
5 | + Version = "0.4.5" | |
6 | 6 | // GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)" |
7 | 7 | GitCommit string |
8 | 8 | ) |