mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-21 15:49:23 +00:00
[DEV-14] Removed Segwit from wire package.
This commit is contained in:
@@ -103,7 +103,7 @@ func ExampleSignTxOutput() {
|
||||
// contains a single output that pays to address in the amount of 1 BTC.
|
||||
originTx := wire.NewMsgTx(wire.TxVersion)
|
||||
prevOut := wire.NewOutPoint(&chainhash.Hash{}, ^uint32(0))
|
||||
txIn := wire.NewTxIn(prevOut, []byte{txscript.OP_0, txscript.OP_0}, nil)
|
||||
txIn := wire.NewTxIn(prevOut, []byte{txscript.OP_0, txscript.OP_0})
|
||||
originTx.AddTxIn(txIn)
|
||||
pkScript, err := txscript.PayToAddrScript(addr)
|
||||
if err != nil {
|
||||
@@ -121,7 +121,7 @@ func ExampleSignTxOutput() {
|
||||
// signature script at this point since it hasn't been created or signed
|
||||
// yet, hence nil is provided for it.
|
||||
prevOut = wire.NewOutPoint(&originTxHash, 0)
|
||||
txIn = wire.NewTxIn(prevOut, nil, nil)
|
||||
txIn = wire.NewTxIn(prevOut, nil)
|
||||
redeemTx.AddTxIn(txIn)
|
||||
|
||||
// Ordinarily this would contain that actual destination of the funds,
|
||||
|
||||
Reference in New Issue
Block a user