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:
parent
aeb0e87453
commit
31a373571b
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user