Questions tagged [checksequenceverify]
The checksequenceverify tag has no usage guidance.
23
questions
0
votes
1
answer
30
views
problem sending relative locktime (OP_CSV) transaction
i tried making a relative timelocked transaction with 1 block timelock (spendable after 1 confirmation)
funding tx:
0fda5412da2a2615361914fad007aac73154746108d44c04529e78f6c4424655
address: ...
5
votes
1
answer
178
views
Why do Anchor Outputs need to enforce an nSequence of 1?
Quote from https://bitcoinops.org/en/topics/anchor-outputs:
As of this writing, the most recent versions of the design add two outputs to the commitment transaction—one for each LN party—and require ...
2
votes
1
answer
54
views
Sequence valid before time
I'm studying sequence, and I set a transaction valid after 512 seconds.
First of all I use regtest and I start from clean blockchain, after that I mine 114 blocks.
At this point miner creates a ...
1
vote
1
answer
65
views
Are both CSV and nLocktime unnecessary in Eltoo?
The Eltoo paper says "Notice that we could use nSequence for this purpose, but due to the interplay with OP_CSV we opted to use nLocktime". Now that Lau showed CSV not to be necessary, does that mean ...
1
vote
1
answer
108
views
Problem using op_checksequenceverify (op_csv) with relative time flag
i have trouble in using op_csv. The spending condition is not match to my expectation.
FUNDING
Redeem Script Hex: 03010040b27576a91451d2a5e04d25ceaa86e600a6ec34bd24431c675d88ac
Redeem Script Asm: 03&...
0
votes
1
answer
39
views
How many bytes long should nSequence be?
When I look at the following raw transaction from: https://blockstream.info/tx/a175425ee2f3c01acc97ef32ab1082db14eaa94e5af4c54f02f3b01dec72558e?expand
...
1
vote
2
answers
82
views
Could someone provide an example of a tx spending from an input with a relative LockTime?
I want to see an example of a raw transaction which spends from an input which has a relative LockTime applied to it. An example would be a transaction from a Lightning payment channel in which a user ...
0
votes
0
answers
347
views
How to use "OP_CHECKSEQUENCEVERIFY" in regtest?
I have created a P2sh includes OP_CHECKSEQUENCEVERIFY and funded the same. I was trying to redeem the coins. But i could not understand the working of OP_CHECKSEQUENCEVERIFY.
Below is the example ...
2
votes
2
answers
714
views
Error: non-mandatory-script-verify-flag (unknown error) (code 64) with OP_CHECKSEQUENCEVERIFY (OP_CSV)
I am trying to implement a relative time lock on a regtest network using OP_CSV and keep getting this error when I try to consume the locked BTC.
I am creating a UTXO with the scriptPubKey as 10 ...
1
vote
1
answer
363
views
How to make a transaction with locktime on testnet?
I tried to make transaction with nLocktime on bitcoin testnet. I am not able to broadcast it.
Can someone please help me to make a basic transaction with 1 input and 1 output, so that I can broadcast ...
5
votes
2
answers
403
views
What is transaction "finality"?
bitcoind IsFinalTx() as seen here checks the properties of a transaction in this order:
Is nLockTime exactly 0? That's final. return.
If it's not 0, is it below the current block height / time? If so,...
11
votes
1
answer
1k
views
What does the sequence in a transaction input mean?
Following a transaction input:
What is the meaning of the sequence number? What does the 4294967295 tell me?
3
votes
1
answer
192
views
Why CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY opcodes have to be succeeded with DROP Opcode?
Opcodes that end in VERIFY generally do not leave anything on the stack. What's so different and the reasoning when designing these opcodes that CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY opcodes ...
1
vote
1
answer
1k
views
Bitcoin Script: mandatory-script-verify-flag-failed Script failed an OP_EQUALVERIFY operation
I try to spend a P2SH transaction (in regtest) with a timelockscript of 200 blocks. I got the following error:
mandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY
operation) (...
0
votes
1
answer
168
views
Why are some of my peers rejecting this CSV transaction?
The CSV-redeeming TX I broadcast: https://www.blocktrail.com/tBTC/tx/807d464fff227ce98cfb5f1292069e2793e99f21b0539a1729cc460af32add77
The locktime was set for ten minutes, and the redeeming tx (...
2
votes
3
answers
155
views
CHECKSEQUENCEVERIFY After x time of last transaction
Is there a way where i can have a multi-sig address which will allow one of the signers to use only their single key after a set amount of time after each transaction/update on the address?
I want ...
2
votes
0
answers
285
views
Locktime requirement not satisfied when locktime set to 1 in p2sh
I've created the following script on testnet:
OP_IF
2 <pubkey1> <pubkey2> <pubkey3> 3
OP_CHECKMULTISIG
OP_ELSE
1 OP_CHECKSEQUENCEVERIFY
OP_DROP
<pubkey1&...
2
votes
1
answer
123
views
Question about nSequence with regard to bip-0112 and bip-0068
So far my understanding is that when you create an op_csv output the value entered before the OP_NOP3 is an arbitary number, lets say 10.
This number can be interpreted as block based of time based ...
5
votes
1
answer
671
views
Sequence number semantics
Reading the following BIPs: 68, 112, 125, I got a few questions about the sematics of sequence numbers. As far as I understood, in version 1 transactions, sequence numbers have the following meaning:
...
4
votes
1
answer
960
views
Does the bitcoin testnet3 network support Segwit and OP_CSV?
As far as I know, Segregated Witness and OP_CHECKSEQUENCEVERIFY are the last features needed to be able to fully implement a trustless bi-directional payment channel, from start to finish. (...
7
votes
2
answers
505
views
Why does the time interval for OP_CSV need to be in the nSequence field when it is already in the script?
BIP68 prescribes how to put the time interval into the nSequence field but then BIP112 tells you that it is possible to specify it in the script with a notation like "30d".
Why are there two ...
2
votes
1
answer
108
views
Is CheckSequenceVerify only a stop-gap measure?
The Lightning Paper v0.5.9.2 says that CSV "would permit further
abilities, including allowing a stop-gap solution before a more permanent
solution for resolving transaction malleability. A future ...
13
votes
1
answer
3k
views
What does OP_CHECKSEQUENCEVERIFY (OP_CSV) do?
Some people have suggested repurposing OP_NOP3 as a new opcode, OP_CHECKSEQUENCEVERIFY.
What would the new opcode do? Why is it useful? Can't the signer choose the sequence field when they sign?