• R/O
  • HTTP
  • SSH
  • HTTPS

bytom: Commit

Official Go implementation of the Bytom protocol


Commit MetaInfo

Revisionfa4a9dd35236f4c89c3b9861cf1b1a93531fd21d (tree)
Zeit2018-04-10 16:10:12
AutorYongfeng LI <wliyongfeng@gmai...>
CommiterGitHub

Log Message

Merge pull request #571 from Bytom/dev

fix the bug (#570)

Ändern Zusammenfassung

Diff

--- a/blockchain/txbuilder/finalize.go
+++ b/blockchain/txbuilder/finalize.go
@@ -32,9 +32,8 @@ func FinalizeTx(ctx context.Context, c *protocol.Chain, tx *types.Tx) error {
3232 if err != nil {
3333 return err
3434 }
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))
3837
3938 _, err = c.ValidateTx(tx)
4039 if errors.Root(err) == protocol.ErrBadTx {
--- a/version/version.go
+++ b/version/version.go
@@ -2,7 +2,7 @@ package version
22
33 var (
44 // The full version string
5- Version = "0.4.4"
5+ Version = "0.4.5"
66 // GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
77 GitCommit string
88 )
Show on old repository browser