Cozz Lovan
44bc988e7b
[Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)
10 years ago
jtimon
54510f2672
DRY: Avoid repetitions in script_test
10 years ago
Pieter Wuille
e790c370b5
Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker
10 years ago
Pieter Wuille
c7829ea797
Abstract out SignatureChecker
10 years ago
Eric Shaw
bc470c43ee
Changed mixed indentation to four spaces
...
Put `test/rpc_wallet_tests.cpp` through clang-format.
10 years ago
Eric Shaw
31d6390fd1
Fixed setaccount accepting foreign address
...
Fixed issue #4209 where using setaccount with a foreign
address causes the address to be added to your receiving addresses.
10 years ago
SergioDemianLerner
f0fd00cb77
Switch testing framework from MAIN to new UNITTEST network
...
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
10 years ago
Wladimir J. van der Laan
8d132431b4
Revert merge of pull #4845
...
It breaks the new mingw tests!
See
- https://travis-ci.org/bitcoin/bitcoin/jobs/36845581
- https://travis-ci.org/bitcoin/bitcoin/jobs/36845582
This reverts commit 4705902777
, 5e2e7fcb99
, a25fd6be13
.
10 years ago
Cory Fields
63c17613ab
tests: fix false-positive under win64
...
BN_ULONG isn't necessarily an unsigned long, as is the case on win64.
10 years ago
Cory Fields
41d67c78bf
tests: fix python test-runner for windows
...
Windows needed a few fixups to get the tests running:
1. bitcoin-tx needs a file extension in Windows. Take this opportunity to
add an env file, which pulls variables out of our build config. This can
be extended as needed, for now it's very simple.
2. After #1 , split the args out of the exec key in the test data.
3. Correct the line-endings from windows stdout
10 years ago
Pieter Wuille
68af7d02cf
Fix vector out of bounds in script tests
10 years ago
SergioDemianLerner
5e2e7fcb99
Suggested corrections on comments, variable names.
...
Also new test case testing the PoW skip in UNITTEST.
10 years ago
SergioDemianLerner
a25fd6be13
Switch testing framework from MAIN to new UNITTEST network
...
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
10 years ago
Mark Friedenbach
a372168e77
Use a typedef for monetary values
10 years ago
Pieter Wuille
8138cbea3c
Add automatic script test generation, and actual checksig tests
10 years ago
Cory Fields
eee030f6bc
autofile: don't copy CAutoFile by value
10 years ago
Cory Fields
a94496fbb6
tests: don't split an empty string
10 years ago
ENikS
219372f1dd
script: Fix reference into empty vector run time exception
...
Edit by laanwj: `begin_ptr(sourcedata) + sourcedata.size()` -> `end_ptr(sourcedata)`
10 years ago
Pieter Wuille
7c70438dc6
Get rid of the dummy CCoinsViewCache constructor arg
10 years ago
Pieter Wuille
ed27e53c9b
Add coins_tests with a large randomized CCoinViewCache test.
10 years ago
Pieter Wuille
c9d1a81ce7
Get rid of CCoinsView's SetCoins and SetBestBlock.
...
All direct modifications are now done through ModifyCoins, and BatchWrite is
used for pushing batches of queued modifications up, so we don't need the
low-level SetCoins and SetBestBlock anymore in the top-level CCoinsView class.
10 years ago
ENikS
c8063b5712
Fixing out of bounds asses error
10 years ago
Pieter Wuille
c8589bf99e
Add actual signature tests
10 years ago
Pieter Wuille
76ec867796
Use actually valid transactions for script tests
10 years ago
Wladimir J. van der Laan
33a27716fc
test: Fix DoS tests after c74332c
...
Fix data structure mismatch ... The mind boggles that they were still passing at all.
10 years ago
Pieter Wuille
0be990ba34
Move CTxDestination from script/script to script/standard
10 years ago
Luke Dashjr
a65e320747
bitcoin-util-test: Test bitcoin-tx with null scriptPubKey
10 years ago
jtimon
6dcfda2dc4
Don't pass nHashType to EvalScript nor CheckSig
10 years ago
jtimon
2b23a87599
Don't pass nHashType to VerifyScript
10 years ago
jtimon
ce3649fb61
Remove CScriptCheck::nHashType (was always 0)
10 years ago
jtimon
358562b651
Remove unused function main:VerifySignature
10 years ago
Gavin Andresen
c74332c678
Stricter handling of orphan transactions
...
Prevent denial-of-service attacks by banning
peers that send us invalid orphan transactions
and only storing orphan transactions given to
us by a peer while the peer is connected.
10 years ago
jtimon
c1e433b717
Rename scriptutils.o to wallet_ismine.o
10 years ago
jtimon
0d2fa14a34
Move scriptutils.o to wallet
10 years ago
Pieter Wuille
6022b5dc6b
Make script_{valid,invalid}.json validation flags configurable
10 years ago
jtimon
e088d65acb
Separate script/sign
10 years ago
jtimon
da03e6ed7c
Separate script/interpreter
10 years ago
jtimon
cbd22a50c4
Move CScript class and dependencies to script/script
10 years ago
jtimon
86dbeea2cd
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)
10 years ago
jtimon
87d9819d4d
fix comments ExtractAddress() -> ExtractDestination()
10 years ago
Wladimir J. van der Laan
ad49c256c3
Split up util.cpp/h
...
Split up util.cpp/h into:
- string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach)
- money utilities (parsesmoney, formatmoney)
- time utilities (gettime*, sleep, format date):
- and the rest (logging, argument parsing, config file parsing)
The latter is basically the environment and OS handling,
and is stripped of all utility functions, so we may want to
rename it to something else than util.cpp/h for clarity (Matt suggested
osinterface).
Breaks dependency of sha256.cpp on all the things pulled in by util.
10 years ago
Wladimir J. van der Laan
d1e26d4e71
Move CMedianFilter to timedata.cpp
...
Now that we no longer use the median filter to keep track of
the number of blocks of peers, that's the only place it is used.
10 years ago
Peter Todd
aa41ac216e
Test IsPushOnly() with invalid push
10 years ago
jtimon
654871d436
replace ComputeMinWork with CheckMinWork
10 years ago
Jeff Garzik
7f836c66bd
rpc_tests: use BOOST_CHECK_EQUAL
...
Upon failure, BOOST_CHECK_EQUAL provides additional diagnostic information,
displaying that data that failed to match.
10 years ago
Jeff Garzik
dc271fc025
UniValue tests: use more BOOST_CHECK()
10 years ago
Jeff Garzik
e85267be63
UniValue: add unit tests
10 years ago
Jeff Garzik
df4d61e681
Add bitcoin-tx tests
...
Testing: delin, delout, locktime, and basic createrawtransaction-like
functionality.
10 years ago
Jeff Garzik
fb14452c6c
bitcoin-tx: Accept input via stdin. Add input handling to tests.
10 years ago
Jeff Garzik
d789386371
Add "it works" test for bitcoin-tx
10 years ago