Commit Graph

1292 Commits

Author SHA1 Message Date
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
rodasmith
1a0373c42c fix op order to append first alert 2018-01-04 21:52:17 +03:00
Jonas Schnelli
5a372293b8 [Qt] show network/chain errors in the GUI 2018-01-04 21:51:54 +03:00
lateminer
f536a8126e Replace COINBASE_MATURITY...
...with nCoinbaseMaturity
2017-12-17 15:21:59 +03:00
lateminer
0252c5cea3 Replace STAKE_MIN_CONFIRMATIONS...
...with nStakeMinConfirmations
2017-12-17 13:18:04 +03:00
lateminer
af6e26a288 Get staking parameters from chainparams.cpp
nStakeTimestampMask, nStakeMinConfirmations, nStakeMinAge
2017-12-04 23:43:49 +03:00
janko33bd
2fdd12b2ea Blackcoin Lore 2017-05-30 21:33:31 +02:00
Chethan Krishna
36f5ee5ff3 Add a new line to print 2016-08-17 10:33:31 -04:00
Chethan Krishna
c8458bf963 logical timestamp indexing of block hashes 2016-08-17 10:14:46 -04:00
Braydon Fuller
347f0d1ed4 main: do not log error when spent info not found 2016-06-13 11:18:36 -04:00
Braydon Fuller
55fa4798eb main: spentindex for the mempool 2016-06-02 12:15:59 -04:00
Braydon Fuller
16d35eb228 main: add amount and address to spentindex value 2016-06-02 12:15:38 -04:00
Braydon Fuller
b752fbe09e rpc: include spent info if spentindex enabled with getrawtransaction verbose 2016-06-02 12:15:37 -04:00