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
Cory Fields
620e64b25f
net: narrow include scope after moving to netaddress
2018-10-18 22:56:46 +03:00
Cory Fields
4de79a2a14
net: Split resolving out of CService
2018-10-18 22:55:26 +03:00
Cory Fields
e5dba2d293
net: Split resolving out of CNetAddr
2018-10-18 22:55:14 +03:00
Pieter Wuille
c043d2fedc
Introduce enum ServiceFlags for service flags
2018-10-18 22:32:23 +03:00
Pieter Wuille
645f26f52b
Don't require services in -addnode
2018-10-18 22:29:19 +03:00
Ethan Heilman
4661755f32
Increase test coverage for addrman and addrinfo
2018-10-18 22:29:10 +03:00
Wladimir J. van der Laan
0c6f5bd006
test: Add more test vectors for siphash
...
Add full test vectors from spec, test per byte and per 8 bytes.
Builds on #8086 .
2018-10-18 21:56:12 +03:00
Pieter Wuille
bcac49d880
Support SipHash with arbitrary byte writes
2018-10-18 21:55:46 +03:00
EthanHeilman
51c23024eb
Fix de-serialization bug where AddrMan is corrupted after exception
2018-10-18 21:32:13 +03:00
Chris Wheeler
ea8bac6c36
Typo fixes in comments
2018-10-17 22:12:07 +03:00
21E14
fcc23c5c63
Double semicolon cleanup.
2018-10-17 22:10:51 +03:00
Pieter Wuille
834db9539b
Get rid of CTxMempool::lookup() entirely
2018-10-17 20:51:51 +03:00
Gregory Maxwell
89655c3a1e
Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.
2018-10-17 20:22:44 +03:00
Matt Corallo
19421ceb48
Add TestMemPoolEntryHelper::FromTx version for CTransaction
2018-10-17 19:15:49 +03:00
Matt Corallo
37fff1268d
Add some blockencodings tests
2018-10-17 19:15:39 +03:00
lateminer
f7422db2f7
Update to Core 0.12.2
2018-10-14 19:07:51 +03:00
lateminer
9cc4974283
Make it compile
2018-10-14 16:44:21 +03:00