Michel van Kessel
83b546163b
replace boost_foreach
2020-12-28 17:28:05 +01:00
Michel van Kessel
ea7971fcdc
doublecheck RPC
2020-12-23 17:15:32 +01:00
Michel van Kessel
8f95fce892
rename test/bench
2020-12-20 12:03:02 +01:00
lateminer
c7346b5efd
Add test case for GetTransactionSigOpCount without the P2SH flags passed in
...
https://reviews.bitcoinabc.org/D1596
2018-11-18 14:39:17 +03:00
lateminer
720ba7e8bf
Use blktest and blkreg in CashAddr tests
2018-11-18 14:22:04 +03:00
lateminer
55729c2f6e
Update to Core 0.13.2
2018-11-14 19:43:28 +03:00
lateminer
b0c11697e6
Add amount check in test/script_tests.cpp
2018-11-11 17:47:05 +03:00
Pieter Wuille
45f139afc4
Enable mempool consistency checks in unit tests
2018-11-11 17:12:44 +03:00
lateminer
aabee84651
Add GetTransactionSigOpCount unit tests
2018-11-11 17:11:01 +03:00
Wladimir J. van der Laan
a1f776cd3c
tests: add varints_bitpatterns test
...
The current tests for varint only check that
serialization-deserialization is a roundtrip. That is a useful test, but
it is also good to check for some exact bit patterns, to prevent a code
change that changes the serialization format from going undetected.
As the varint functions are templated, also check with different types.
2018-11-11 16:43:34 +03:00
Luke Dashjr
5a59508b27
Rewrite FormatParagraph to handle newlines within input strings correctly
2018-11-11 16:36:55 +03:00
lateminer
ca70ac43ab
Add amount check to SignatureHash()
...
test/sighash_tests.cpp
2018-11-11 16:35:31 +03:00
Pavel Janík
576b08a7f8
Remove unused local variable shadowing upper local
2018-11-11 16:30:11 +03:00
Ethan Heilman
bec58f282f
Fix typo adddrman to addrman as requested in #8070
2018-11-11 16:09:11 +03:00
EthanHeilman
90342d8b9c
Remove non-determinism which is breaking net_tests #8069
2018-11-11 16:08:59 +03:00
Suhas Daftuar
611af28b87
Add unit tests for ancestor feerate mining
2018-11-11 16:00:45 +03:00
instagibbs
65db743b28
Corrected values
2018-11-11 16:00:13 +03:00
instagibbs
bb82eb1692
Gave miner test values constants for less error-prone values.
2018-11-11 15:59:24 +03:00
Pieter Wuille
0ebc1549ca
Change sigOpCount to sigOpCost
...
test_bitcoin.cpp
test_bitcoin.h
2018-11-11 15:51:19 +03:00
Pieter Wuille
fbd2dec95f
Implement SipHash in Python
...
Github-Pull: #8418
Rebased-From: 9c8593d2b4e25ef628172ceadbedf0ef078d01ef
2018-11-11 15:22:50 +03:00
jnewbery
7f51c400d2
bitcoin-util-test.py should fail if the output file is empty
...
Github-Pull: #8836
Rebased-From: da9469770847df56e67e629986129a087b5bd7a5
2018-11-11 15:16:54 +03:00
Pavel Janík
e85f041d13
Do not shadow local variables
2018-11-11 15:15:22 +03:00
Jeremy Rubin
a638b3764c
Fix obvious assignment/equality error in test
...
Github-Pull: #8673
Rebased-From: 426e7bce0e365e0947f932ca46bcc48ca3a2f10e
2018-11-11 15:13:53 +03:00
Chris Stewart
941baa9eb5
Update README.md
...
Updating documentation for adding new unit test files
Removing unneeded sentence from README
Removing uint160_tests.cpp as it DNE
Formatting command line instructions to use ``
fixing 80 char formatting issue in README
fixing more nits
Github-Pull: #8428
Rebased-From: b8db185952c815444b7052092472ef9af3a42e89
2018-11-11 15:12:37 +03:00
Pieter Wuille
a43a6df7ef
Add amounts to signature tests
2018-11-11 15:11:37 +03:00
Karl-Johan Alm
a92f016b70
Uses built-in byte swap if available (Apple) and if bswap_XX is undefined
2018-11-10 20:09:05 +03:00
jnewbery
c7f6a2e815
Add bitcoin-tx JSON tests
...
Github-Pull: #8829
Rebased-From: 54e5d7c1b81e1b76f5789abfa2cb1f5963cd9d72
2018-11-10 18:46:43 +03:00
Wladimir J. van der Laan
3ef2c26f90
test: test leading space for ParseHex
...
BerkeleyDB dump files have key and value lines indented.
The salvage code passes these to ParseHex as-is.
Check this in the tests (should just pass with current code).
2018-10-29 21:56:21 +03:00
lateminer
414b8b267d
Partly add amount output
...
605e8473a7 (diff-1dbee12e01d094e7366545ec024c5041)
2018-10-29 21:38:53 +03:00
Thomas Kerin
19820c1f9f
[libconsensus] Script verification API with amounts
2018-10-29 21:07:14 +03:00
Johnson Lau
55f62b1f68
Add policy: null signature for failed CHECK(MULTI)SIG
2018-10-25 20:51:48 +03:00
Pieter Wuille
152011e50d
Use a signal to continue init after genesis activation
2018-10-24 22:06:59 +03:00
Gregory Maxwell
8a98c894d4
Increase maximum orphan size to 100,000 bytes.
...
Although this increases node memory usage in the worst case by perhaps
30MB, the current behavior causes severe issues with dependent tx relay.
2018-10-23 22:53:13 +03:00
lateminer
74cf4b83e5
Refactor CreateNewBlock to be a method of the BlockAssembler class
2018-10-23 01:15:28 +03:00
Kaz Wesley
2a758e6810
test prevector::swap
...
- add a swap operation to prevector tests (fails due to broken prevector::swap)
- fix 2 prevector test operation conditions that were impossible
2018-10-22 00:55:39 +03:00
MarcoFalke
c1665d245e
Add missing copyright headers
2018-10-22 00:54:59 +03:00
21E14
69de80c238
Remove obsolete reference to CValidationState from UpdateCoins.
2018-10-22 00:40:59 +03:00
Mustafa
43c5d478c0
Move GetTempPath() to testutil.
2018-10-22 00:10:54 +03:00
Wladimir J. van der Laan
853cd3845c
util: Add ParseUInt32 and ParseUInt64
...
Add error and range-checking parsers for unsigned 32 and 64 bit numbers.
The 32-bit variant is required for parsing sequence numbers from the
command line in `bitcoin-tx` (see #8164 for discussion). I've thrown in
the 64-bit variant as a bonus, as I'm sure it will be needed at some
point.
Also adds tests, and updates `developer-notes.md`.
2018-10-21 23:59:08 +03:00
Suhas Daftuar
f2a7a4d1ba
Fix compact block handling to not ban if block is invalid
2018-10-21 23:41:27 +03:00
MarcoFalke
83c2dd1f10
Bump copyright headers to 2014
2018-10-19 20:21:37 +03:00
Gregory Maxwell
ef31caf805
Remove GetTotalBlocksEstimate and checkpoint tests that test nothing.
2018-10-19 20:04:55 +03:00
Pieter Wuille
3ac186a690
More efficient bitsliced rolling Bloom filter
...
This patch changes the implementation from one that stores 16 2-bit integers
in one uint32_t's, to one that stores the first bit of 64 2-bit integers in
one uint64_t and the second bit in another. This allows for 450x faster
refreshing and 2.2x faster average speed.
2018-10-19 19:47:49 +03:00
MarcoFalke
733f17114c
[amount] tests: Fix off-by-one mistake
2018-10-19 19:43:40 +03:00
MarcoFalke
f36643ec2d
[amount] test negative fee rates and full constructor
2018-10-19 19:42:51 +03:00
MarcoFalke
74ec1d8c8a
[qa] Add amount tests
2018-10-19 19:42:40 +03:00
lateminer
1874993043
Fix multiple backporting errors
2018-10-19 00:54:22 +03:00
Cory Fields
819f4b8dfe
net: Split resolving out of CSubNet
2018-10-19 00:01:51 +03:00
Ethan Heilman
82072c13f8
Added feeler connections increasing good addrs in the tried table.
2018-10-18 23:26:46 +03:00
Cory Fields
84a208b9d2
net: Have LookupNumeric return a CService directly
2018-10-18 23:10:38 +03:00