aboutsummaryrefslogtreecommitdiff
path: root/src/test/data/tx_invalid.json
Commit message (Collapse)AuthorAgeFilesLines
* Add script tests for FindAndDelete in pre-segwit and segwit scriptsJohnson Lau2016-10-161-0/+26
|
* Rename OP_NOP3 to OP_CHECKSEQUENCEVERIFYBtcDrak2016-06-281-14/+14
|
* [qa] Add transaction tests for segwitNicolasDorier2016-06-221-0/+63
| | | | Including BIP143 P2WSH examples by jl2012.
* BIP144: Serialization, hashes, relay (sender side)Pieter Wuille2016-06-221-4/+0
| | | | | | Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
* BIP112: Implement CHECKSEQUENCEVERIFYMark Friedenbach2016-02-141-0/+54
| | | | | | | | | | - Replace NOP3 with CHECKSEQUENCEVERIFY (BIP112) <nSequence> CHECKSEQUENCEVERIFY -> <nSequence> - Fails if txin.nSequence < nSequence, allowing funds of a txout to be locked for a number of blocks or a duration of time after its inclusion in a block. - Pull most of CheckLockTime() out into VerifyLockTime(), a local function that will be reused for CheckSequence() - Add bitwise AND operator to CScriptNum - Enable CHECKSEQUENCEVERIFY as a standard script verify flag - Transactions that fail CSV verification will be rejected from the mempool, making it easy to test the feature. However blocks containing "invalid" CSV-using transactions will still be accepted; this is *not* the soft-fork required to actually enable CSV for production use.
* Rename OP_NOP2 to OP_CHECKLOCKTIMEVERIFY.mb300sd2015-12-151-16/+16
|
* unittest: fix test for null tx inputDaniel Kraft2015-10-271-3/+7
| | | | | | | | | | | Update the unittest that is meant to catch a transaction that is invalid because it has a null input. The old test failed not because of that but because it was considered a coinbase with too large script. This is already checked with a different test, though. The new test is *not* a coinbase since it has two inputs, but one of them is null. This really checks the corresponding code path in CheckTransaction.
* Add DERSIG transaction test casesJ Ross Nicoll2015-10-181-0/+4
| | | | Add test cases for DERSIG flag enforcement against transactions.
* Merge pull request #6544Wladimir J. van der Laan2015-08-191-1/+1
|\ | | | | | | | | c5c1edf Fix spelling mistake in -> if. (Mark Friedenbach) e846b2a Correct a possibly intentional pun that is nevertheless hard to read: "two times of nLockTime." What is meant is that there are two kinds, or categories of nLockTime. (Mark Friedenbach)
| * Fix spelling mistake in -> if.Mark Friedenbach2015-08-101-1/+1
| |
* | typofixes (found by misspell_fixer)Veres Lajos2015-08-101-1/+1
|/
* CLTV: Add more tests to improve coverageEsteban Ordano2015-07-061-0/+8
| | | | | | | | | | | Four cases included: * The CLTV operand type mismatches the tx locktime. In the script it is 1 (interpreted as block height), but in the tx is 500000000 (interpreted as date) * The stack is empty when executing OP_CLTV * The tx is final by having only one input with MAX_INT sequence number * The operand for CLTV is negative (after OP_0 OP_1 OP_SUB)
* Replace NOP2 with CHECKLOCKTIMEVERIFY (BIP65)Peter Todd2015-06-211-0/+64
| | | | | | | | | | | | | | | | <nLockTime> CHECKLOCKTIMEVERIFY -> <nLockTime> Fails if tx.nLockTime < nLockTime, allowing the funds in a txout to be locked until some block height or block time in the future is reached. Only the logic and unittests are implemented; this commit does not have any actual soft-fork logic in it. Thanks to Pieter Wuille for rebase. Credit goes to Gregory Maxwell for the suggestion of comparing the argument against the transaction nLockTime rather than the current time/blockheight directly.
* Add more script edge condition tests.Dave Collins2015-05-061-0/+6
| | | | | | This commit adds some tests to the script_valid.json and tx_invalid.json data which exercise more edge conditions that are not currently being tested.
* Test unexecuted OP_CODESEPARATORPeter Todd2014-12-041-0/+12
| | | | | | | | OP_CODESEPARATOR is an actual executed instruction, not a declarative thing, so if it's wrapped in an OP_IF it can be turned off. Using this to implement Rivest's Paywords is left as an exercise for the reader.
* Add rejection of non-null CHECKMULTISIG dummy valuesPeter Todd2014-05-081-1/+28
| | | | | | This is a source of transaction mutability as the dummy value was previously not checked and could be modified to something other than the usual OP_0 value.
* Let tx (in)valid tests use any SCRIPT_VERIFY flagPeter Todd2014-05-051-17/+17
| | | | Previously only P2SH could be set.
* Add more data-driven tests.Matt Corallo2014-01-301-1/+7
|
* Add tests for correct and incorrect order of signatures for a multisigTamas Blummer2013-12-111-1/+6
| | | (P2SH)
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-1/+1
| | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
* Add a few data-driven tests for SIGHASH_ANYONECANPAYMatt Corallo2013-05-211-1/+6
|
* Add various tests for CTransaction::CheckTransaction()Matt Corallo2012-09-051-1/+39
|
* Add data-driven transaction tests.Matt Corallo2012-08-201-0/+26