From c0f093551f5ea6bbb764e0815920ef0b1b453ef7 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Thu, 16 Mar 2017 23:09:49 -0400 Subject: [PATCH] sign bytes bug fix --- types/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/tx.go b/types/tx.go index 5dcec7dacc..285902db6f 100644 --- a/types/tx.go +++ b/types/tx.go @@ -152,7 +152,7 @@ func (tx *SendTx) SignBytes(chainID string) []byte { signBytes := wire.BinaryBytes(chainID) sigz := make([]crypto.Signature, len(tx.Inputs)) for i, input := range tx.Inputs { - sigz[i] = input.Signature + sigz[i] = input.Signature.Signature tx.Inputs[i].Signature.Signature = nil } signBytes = append(signBytes, wire.BinaryBytes(tx)...)