Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #571 from Bytom/dev
Browse files Browse the repository at this point in the history
fix the bug (#570)
  • Loading branch information
wliyongfeng authored Apr 10, 2018
2 parents 8a6b761 + 5bbb12e commit fa4a9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions blockchain/txbuilder/finalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ func FinalizeTx(ctx context.Context, c *protocol.Chain, tx *types.Tx) error {
if err != nil {
return err
}
if err := tx.UnmarshalText(data); err != nil {
return err
}
tx.TxData.SerializedSize = uint64(len(data))
tx.Tx.SerializedSize = uint64(len(data))

_, err = c.ValidateTx(tx)
if errors.Root(err) == protocol.ErrBadTx {
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package version

var (
// The full version string
Version = "0.4.4"
Version = "0.4.5"
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
)
Expand Down

0 comments on commit fa4a9dd

Please sign in to comment.