rpcserver: Correctly assign TxIn amounts

Use the passed amounts instead of wire.NullValueIn for inputs to the
transaction in handleCreateRawSSTx. Use nil instead of an empty slice.
This commit is contained in:
JoeGruff 2020-02-13 16:46:57 +09:00 committed by Dave Collins
parent aeb0e87453
commit 31a373571b

View File

@ -735,7 +735,7 @@ func handleCreateRawSStx(_ context.Context, s *rpcServer, cmd interface{}) (inte
}
prevOut := wire.NewOutPoint(txHash, input.Vout, input.Tree)
txIn := wire.NewTxIn(prevOut, wire.NullValueIn, []byte{})
txIn := wire.NewTxIn(prevOut, input.Amt, nil)
mtx.AddTxIn(txIn)
}