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
BtcDrak
7de932ba87
Remove p2p alert handling
2018-09-30 18:03:59 +03:00
lateminer
323a6750c2
Add CashAddr Address Format
...
Ported from Bitcoin Unlimited, Bitcoin ABC
2018-01-14 22:32:08 +03:00
Alex Morcos
092922c063
Disable fee estimates for a confirm target of 1 block
...
Backport of #9239 without GUI changes and fixing conflicts in tests.
2018-01-13 13:43:54 +03:00
Gavin Andresen
5cb6544093
Unit test for CScript::FindAndDelete
2018-01-13 02:52:08 +03:00
Pieter Wuille
3806509c82
Add SipHash-2-4 primitives to hash
2018-01-13 02:04:12 +03:00
Pieter Wuille
0108167866
Add tests for CCoins deserialization
2018-01-13 02:03:37 +03:00
Wladimir J. van der Laan
b2c1789e61
dbwrapper: Pass parent CDBWrapper into CDBBatch and CDBIterator
...
Pass parent wrapper directly instead of obfuscation key. This
makes it possible for other databases which re-use this code
to use other properties from the database.
Add a namespace dbwrapper_private for private functions to be used
only in dbwrapper.h/cpp and dbwrapper_tests.
2018-01-13 01:58:42 +03:00
Suhas Daftuar
b02423bdb5
Add ancestor feerate index to mempool
2018-01-13 01:57:17 +03:00
Suhas Daftuar
e001fd3ea4
Rename CTxMemPool::remove -> removeRecursive
2018-01-13 01:56:51 +03:00
Suhas Daftuar
1e0ba49e26
Add tags to mempool's mapTx indices
2018-01-13 01:31:09 +03:00
Wladimir J. van der Laan
b1d5409eb8
build: python 3 compatibility
2018-01-12 21:31:33 +03:00
Wladimir J. van der Laan
a0bf1386b7
wallet_ismine.h → script/ismine.h
2018-01-10 00:03:31 +03:00
Wladimir J. van der Laan
8a0a14b77b
test: Create test fixture for wallet
...
Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by
making the wallet tests use their own fixture.
2018-01-10 00:02:00 +03:00
Wladimir J. van der Laan
f508e91677
test: move accounting_tests and rpc_wallet_tests to wallet/test
2018-01-10 00:01:44 +03:00
Cory Fields
2579687f83
c++11: don't throw from the reverselock destructor
...
noexcept is default for destructors as of c++11. By throwing in reverselock's
destructor if it's lock has been tampered with, the likely result is
std::terminate being called. Indeed that happened before this change.
Once reverselock has taken another lock (its ctor didn't throw), it makes no
sense to try to grab or lock the parent lock. That is be broken/undefined
behavior depending on the parent lock's implementation, but it shouldn't cause
the reverselock to fail to re-lock when destroyed.
To avoid those problems, simply swap the parent lock's contents with a dummy
for the duration of the lock. That will ensure that any undefined behavior is
caught at the call-site rather than the reverse lock's destruction.
Barring a failed mutex unlock which would be indicative of a larger problem,
the destructor should now never throw.
2018-01-09 23:32:07 +03:00
Cory Fields
cb9ed6bc39
crypto: add aes cbc tests
2018-01-08 21:56:54 +03:00
Pieter Wuille
46910cb2d5
Add ctaes-based constant time AES implementation
2018-01-08 21:56:36 +03:00
instagibbs
c37ac7db87
Add importprunedfunds rpc call
2018-01-08 21:36:08 +03:00
lateminer
99238ff2c8
Merge remote-tracking branch 'janko33bd/Blackcoin-Lore' into rpc-updates-0.13
2018-01-06 16:41:28 +03:00
Jonas Schnelli
893db80a40
[Bitcoin-Tx] Add tests for sequence number support
2018-01-06 14:38:26 +03:00
Wladimir J. van der Laan
b460adbab0
rpc: Register calls where they are defined
2018-01-06 13:58:48 +03:00
janko33bd
71c4f88bf9
fixing to compile
2018-01-06 00:37:31 +01:00