• About
  • Privacy Poilicy
  • Disclaimer
  • Contact
CoinInsight
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
CoinInsight
No Result
View All Result
Home Bitcoin

checksequenceverify – What prevents an arbitrarily excessive nSequence worth when spending an OP_CSV output?

Coininsight by Coininsight
March 5, 2025
in Bitcoin
0
checksequenceverify – What prevents an arbitrarily excessive nSequence worth when spending an OP_CSV output?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I’ve gone by means of the numerous associated questions right here on stack alternate and clearly learn BIP68 and BIP112, however I nonetheless can not appear to come back to a transparent reply for the next query: what’s stopping a transaction that spends an output encumbered by OP_CSV from setting an arbitrarily excessive nSequence worth?

Lets say the next situation:

  • txA has a single output encumbered by 10 OP_CSV, which means this output can solely be included in a transaction that’s mined 10 blocks after txA is confirmed
  • txB spends a single enter, which is the one output created from txA

The operate that performs the verify is

template 
bool GenericTransactionSignatureChecker::CheckSequence(const CScriptNum& nSequence) const
{
    // Relative lock occasions are supported by evaluating the handed
    // in operand to the sequence variety of the enter.
    const int64_t txToSequence = (int64_t)txTo->vin[nIn].nSequence;

    ...
    omitted logic
    ...

    // Now that we all know we're evaluating apples-to-apples, the
    // comparability is a straightforward numeric one.
    if (nSequenceMasked > txToSequenceMasked)
        return false;

    return true;
}

Why ought to the spending transaction not have the ability to set nSequence for the enter in such a manner that txToSequenceMasked is at all times greater than nSequenceMasked? What precisely is stopping this? I really feel like I am lacking one thing apparent right here.

Hopefully my query is sensible, thanks!

Related articles

Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

May 9, 2025
Bitcoin Breaches $100K As US-UK Signal Commerce Deal And Arizona Approves Crypto Reserve Legislation

Bitcoin Breaches $100K As US-UK Signal Commerce Deal And Arizona Approves Crypto Reserve Legislation

May 9, 2025


I’ve gone by means of the numerous associated questions right here on stack alternate and clearly learn BIP68 and BIP112, however I nonetheless can not appear to come back to a transparent reply for the next query: what’s stopping a transaction that spends an output encumbered by OP_CSV from setting an arbitrarily excessive nSequence worth?

Lets say the next situation:

  • txA has a single output encumbered by 10 OP_CSV, which means this output can solely be included in a transaction that’s mined 10 blocks after txA is confirmed
  • txB spends a single enter, which is the one output created from txA

The operate that performs the verify is

template 
bool GenericTransactionSignatureChecker::CheckSequence(const CScriptNum& nSequence) const
{
    // Relative lock occasions are supported by evaluating the handed
    // in operand to the sequence variety of the enter.
    const int64_t txToSequence = (int64_t)txTo->vin[nIn].nSequence;

    ...
    omitted logic
    ...

    // Now that we all know we're evaluating apples-to-apples, the
    // comparability is a straightforward numeric one.
    if (nSequenceMasked > txToSequenceMasked)
        return false;

    return true;
}

Why ought to the spending transaction not have the ability to set nSequence for the enter in such a manner that txToSequenceMasked is at all times greater than nSequenceMasked? What precisely is stopping this? I really feel like I am lacking one thing apparent right here.

Hopefully my query is sensible, thanks!

Tags: arbitrarilychecksequenceverifyHighnSequenceOP_CSVoutputpreventsspending
Share76Tweet47

Related Posts

Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

by Coininsight
May 9, 2025
0

Be a part of Our Telegram channel to remain updated on breaking information protection A Home Committee in Texas has...

Bitcoin Breaches $100K As US-UK Signal Commerce Deal And Arizona Approves Crypto Reserve Legislation

Bitcoin Breaches $100K As US-UK Signal Commerce Deal And Arizona Approves Crypto Reserve Legislation

by Coininsight
May 9, 2025
0

Bitcoin has made a dramatic return to six-figure territory and reclaimed its $100k milestone for the primary time since January...

Bitcoin to $1M? Finest Crypto to Purchase As Trump Pronounces UK + US Commerce Deal

Bitcoin to $1M? Finest Crypto to Purchase As Trump Pronounces UK + US Commerce Deal

by Coininsight
May 8, 2025
0

Trusted Editorial content material, reviewed by main trade specialists and seasoned editors. Advert Disclosure Bitcoin to $1M? Arthur Hayes thinks...

Bitcoin’s Realized Cap Hits Document Excessive as Accumulation Continues

Bitcoin’s Realized Cap Hits Document Excessive as Accumulation Continues

by Coininsight
May 8, 2025
0

Bitcoin is at present buying and selling slightly below the $100,000 psychological threshold, sustaining a sideways trajectory in current weeks....

Scotland’s Lomond Faculty And Saifedean Ammous Launch New Bitcoin Scholarship Program

Scotland’s Lomond Faculty And Saifedean Ammous Launch New Bitcoin Scholarship Program

by Coininsight
May 8, 2025
0

In a daring new step mixing schooling and Bitcoin innovation, Lomond Faculty has introduced the launch of the Satoshi Scholarships,...

Load More
  • Trending
  • Comments
  • Latest
Haedal token airdrop information

Haedal token airdrop information

April 24, 2025
BitHub 77-Bit token airdrop information

BitHub 77-Bit token airdrop information

February 6, 2025
MilkyWay ($milkTIA, $MILK) Token Airdrop Information

MilkyWay ($milkTIA, $MILK) Token Airdrop Information

March 4, 2025
Bitcoin and Benjamin Franklin

Bitcoin and Benjamin Franklin

February 1, 2025
The Cynics and Idealists of Bitcoin

The Cynics and Idealists of Bitcoin

0
Arkham Trade Lists MELANIA for Spot and Perpetual Buying and selling

Arkham Trade Lists MELANIA for Spot and Perpetual Buying and selling

0
EEA Trade Day at Devcon 2024

EEA Trade Day at Devcon 2024

0
Bitcoin Value Crashes Beneath $98,000: Right here’s Why

Bitcoin Value Crashes Beneath $98,000: Right here’s Why

0
The Groupon Revival – Raging Bull

The Groupon Revival – Raging Bull

May 9, 2025
What’s Peanut the Squirrel (PNUT) and How Does it Work?

What’s Peanut the Squirrel (PNUT) and How Does it Work?

May 9, 2025
Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

Texas Bitcoin Reserve Invoice Clears Committee, Heads For Flooring Vote

May 9, 2025
XRP $7 Value Rocket As Nigh As Ever As ‘Epic Gravitational Fall’ Principle Cites 1,500% Surge ⋆ ZyCrypto

XRP $7 Value Rocket As Nigh As Ever As ‘Epic Gravitational Fall’ Principle Cites 1,500% Surge ⋆ ZyCrypto

May 9, 2025

CoinInight

Welcome to CoinInsight.co.uk – your trusted source for all things cryptocurrency! We are passionate about educating and informing our audience on the rapidly evolving world of digital assets, blockchain technology, and the future of finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Ethereum
  • Future of Crypto
  • Market
  • Regulation
  • Ripple

Recent News

The Groupon Revival – Raging Bull

The Groupon Revival – Raging Bull

May 9, 2025
What’s Peanut the Squirrel (PNUT) and How Does it Work?

What’s Peanut the Squirrel (PNUT) and How Does it Work?

May 9, 2025
  • About
  • Privacy Poilicy
  • Disclaimer
  • Contact

© 2025- https://coininsight.co.uk/ - All Rights Reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining

© 2025- https://coininsight.co.uk/ - All Rights Reserved

Social Media Auto Publish Powered By : XYZScripts.com
Verified by MonsterInsights