Commit Graph

1304 Commits

Author SHA1 Message Date
ptschip
99c318c13f Do not download transactions during inital sync 2018-10-14 15:11:16 +03:00
lateminer
43e6bbc312 Make it compile 2018-10-14 14:22:03 +03:00
Kaz Wesley
000a97ca5f replace mapNextTx with slimmer setSpends 2018-10-13 18:59:42 +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
lateminer
c6238629b3 Remove drivechain support using OP_COUNT_ACKS 2018-10-13 16:30:31 +03:00
lateminer
b76793c9f9 Fix backporting errors
main.cpp
wallet/wallet.cpp
wallet/wallet.h
2018-10-13 16:14:49 +03:00
Alex Morcos
b821da64ef Implement "feefilter" P2P message. 2018-10-13 15:44:02 +03:00
Suhas Daftuar
75e463decf Improve handling of unconnecting headers 2018-10-13 14:05:45 +03:00
lateminer
b35f06eda3 Update code with PACKAGE_NAME and COPYRIGHT_HOLDERS 2018-10-13 13:49:46 +03:00
Luke Dashjr
116f49d390 Implement BIP 9 GBT changes
- BIP9DeploymentInfo struct for static deployment info
- VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names
- getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN
- In this commit, all rules are considered required for clients to support
2018-10-13 02:42:30 +03:00
lateminer
66dd63a23b Proof-of-stake related code refactoring and cleanup 2018-10-12 23:40:50 +03:00
lateminer
e9886e3f1b Code cleanup 2018-10-12 00:34:40 +03:00
lateminer
d452787a2c Completely remove coinage 2018-10-12 00:04:41 +03:00
lateminer
b338987d94 Move block height check from ContextualCheckBlock() to ConnectBlock() 2018-10-11 22:56:04 +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
Jonas Schnelli
71eeb17454 [Qt] show network/chain errors in the GUI 2018-09-30 18:56:56 +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
694c451c7e Update alert notification and GUI 2018-09-30 18:07:26 +03:00
BtcDrak
8fb8ada384 Remove -alerts option 2018-09-30 18:06:51 +03:00
BtcDrak
7de932ba87 Remove p2p alert handling 2018-09-30 18:03:59 +03:00
lateminer
20938be16f Fix: Reformat version in UpdateTip and other messages 2018-01-13 14:27:47 +03:00
Russell Yanofsky
67c3960ddb Send tip change notification from invalidateblock
This change is needed to prevent sync_blocks timeouts in the mempool_reorg
test after the sync_blocks update in the upcoming commit
"[qa] Change sync_blocks to pick smarter maxheight".

This change was initially suggested by Suhas Daftuar <sdaftuar@chaincode.com>
in https://github.com/bitcoin/bitcoin/pull/8680#r78209060
2018-01-13 13:45:03 +03:00
Pieter Wuille
bba401c693 Report reindexing progress in GUI 2018-01-13 13:10:50 +03:00
Pieter Wuille
c72b290878 Optimize ActivateBestChain for long chains 2018-01-13 12:59:16 +03:00
Pieter Wuille
26d8544314 Switch reindexing to AcceptBlock in-loop and ActivateBestChain afterwards 2018-01-13 12:49:31 +03:00
Pieter Wuille
722169b74d Make ProcessNewBlock dbp const and update comment 2018-01-13 12:38:06 +03:00
Pieter Wuille
1ab443eec7 Reformat version in UpdateTip and other messages 2018-01-13 12:32:02 +03:00
lateminer
c946ec9d9e Revert "mapNextTx: use pointer as key, simplify value"
This reverts commit 52680318bb.
2018-01-13 02:44:28 +03:00
Suhas Daftuar
e46145b850 Eliminate unnecessary call to CheckBlock 2018-01-13 02:19:17 +03:00
Kaz Wesley
52680318bb mapNextTx: use pointer as key, simplify value 2018-01-13 02:14:46 +03:00
Suhas Daftuar
4366ce4fa0 VerifyDB: don't check blocks that have been pruned 2018-01-13 02:08:32 +03:00
Pieter Wuille
458cfffcd0 Use SipHash-2-4 for address relay selection 2018-01-13 02:07:58 +03:00
Suhas Daftuar
dcb9441105 Add ancestor tracking to mempool
This implements caching of ancestor state to each mempool entry, similar to
descendant tracking, but also including caching sigops-with-ancestors (as that
metric will be helpful to future code that implements better transaction
selection in CreatenewBlock).
2018-01-13 01:57:09 +03:00
Suhas Daftuar
83568275f1 Remove work limit in UpdateForDescendants()
The work limit served to prevent the descendant walking algorithm from doing
too much work by marking the parent transaction as dirty.  However to implement
ancestor tracking, it's not possible to similarly mark those descendant
transactions as dirty without having to calculate them to begin with.

This commit removes the work limit altogether.  With appropriate
chain limits (-limitdescendantcount) the concern about doing too much
work inside this function should be mitigated.
2018-01-13 01:56:59 +03:00
Suhas Daftuar
e001fd3ea4 Rename CTxMemPool::remove -> removeRecursive 2018-01-13 01:56:51 +03:00
Wladimir J. van der Laan
fefec9de84 mempool: Re-remove ERROR logging for mempool rejects 2018-01-13 01:33:19 +03:00
lateminer
3d26f43eb0 mempool: Replace maxFeeRate of 10000*minRelayTxFee with maxTxFee
fa331db68b
2018-01-13 01:30:21 +03:00
Alex Morcos
a4dc487b0e Save the last unnecessary database read
It's possible coins with the same hash exist when you create a duplicate coinbase, so previously we were reading from the database to make sure we had the old coins cached so if we were to spend the new ones, the old ones would also be spent.  This pull instead just marks the new coins as not fresh if they are from a coinbase, so if they are spent they will be written all the way down to the database anyway overwriting any duplicates.
2018-01-13 01:01:21 +03:00
lateminer
72875a2116 Relay double-spends, subject to anti-DOS
cef3711500 (diff-7ec3c68a81efff79b6ca22ac1f1eabbaL929)
2018-01-10 21:52:38 +03:00
lateminer
261efcf69a Merge remote-tracking branch 'janko33bd/Blackcoin-Lore' into wallet-updates-0.13 2018-01-08 19:45:45 +03:00
Pieter Wuille
f9d2d353ff Always require OS randomness when generating secret keys 2018-01-07 13:27:51 +03:00
lateminer
99238ff2c8 Merge remote-tracking branch 'janko33bd/Blackcoin-Lore' into rpc-updates-0.13 2018-01-06 16:41:28 +03:00
janko33bd
b8609fc6e3 removing forgotten height 2018-01-06 00:44:43 +01:00
janko33bd
71c4f88bf9 fixing to compile 2018-01-06 00:37:31 +01:00
Wladimir J. van der Laan
e0de81556a net: Add fRelayTxes flag
Add a fRelayTxes to keep track of the relay transaction flag
we send to other peers.
2018-01-06 01:05:02 +03:00
janko33bd
235a9b184b Add cache of coinbases for OP_COUNT_ACKS 2018-01-05 22:25:18 +01:00
janko33bd
92bc14233f Implementation of OP_COUNT_ACK 2018-01-05 22:06:35 +01:00