OSDN Git Service

fix the bug (#570)
authorPaladz <yzhu101@uottawa.ca>
Tue, 10 Apr 2018 07:04:53 +0000 (15:04 +0800)
committerGitHub <noreply@github.com>
Tue, 10 Apr 2018 07:04:53 +0000 (15:04 +0800)
blockchain/txbuilder/finalize.go
version/version.go

index 65b01c2..043954e 100644 (file)
@@ -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 {
index ccb5ec9..782833d 100644 (file)
@@ -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
 )