mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
bob's txin shouldn't have the pkscript as the sig :)
This commit is contained in:
@@ -99,7 +99,7 @@ func newBobNode() (*bobNode, error) {
|
|||||||
prevOut := wire.NewOutPoint(&wire.ShaHash{}, ^uint32(0))
|
prevOut := wire.NewOutPoint(&wire.ShaHash{}, ^uint32(0))
|
||||||
// TODO(roasbeef): When the chain rpc is hooked in, assert bob's output
|
// TODO(roasbeef): When the chain rpc is hooked in, assert bob's output
|
||||||
// actually exists and it unspent in the chain.
|
// actually exists and it unspent in the chain.
|
||||||
bobTxIn := wire.NewTxIn(prevOut, bobAddrScript)
|
bobTxIn := wire.NewTxIn(prevOut, nil)
|
||||||
|
|
||||||
// Using bobs priv key above, create a change address he can spend.
|
// Using bobs priv key above, create a change address he can spend.
|
||||||
bobChangeOutput := wire.NewTxOut(2*1e8, bobAddrScript)
|
bobChangeOutput := wire.NewTxOut(2*1e8, bobAddrScript)
|
||||||
|
Reference in New Issue
Block a user