Commit Graph

848 Commits

Author SHA1 Message Date
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
Pieter Wuille
cd30f2becb Rename to PrecomputedTransactionData 2018-10-13 17:57:50 +03:00
Pieter Wuille
d8d19c532f Precompute sighashes 2018-10-13 17:39:41 +03:00
Pieter Wuille
81e04cabfe Refactor script validation to observe amounts 2018-10-13 17:05:24 +03:00
Alex Morcos
b821da64ef Implement "feefilter" P2P message. 2018-10-13 15:44:02 +03:00
mruddy
42d12434d5 RPC: fix generatetoaddress failing to parse address and add unit test 2018-10-13 14:36:55 +03:00
lateminer
b35f06eda3 Update code with PACKAGE_NAME and COPYRIGHT_HOLDERS 2018-10-13 13:49:46 +03:00
Johnson Lau
c4e8c11932 Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH 2018-10-13 01:53:13 +03:00
lateminer
b1bb30cb3a Remove address indexes 2018-10-11 22:02:52 +03:00
lateminer
3a29ae6903 Some code refactoring and cleanup 2018-10-02 01:04:31 +03:00
BtcDrak
556187e3f8 Remove bad chain alert partition check
As per meeting 2016-03-31
https://bitcoincore.org/en/meetings/2016/03/31/#bad-chain-alerts

The partition checker was producing huge number of false-positives
and was disabled in 0.12.1 on the understanding it would either be
fixed in 0.13 or removed entirely from master if not.
2018-09-30 18:14:12 +03:00