Pieter Wuille
6dd81169fc
Remove SIGCHECK_VERIFICATION_FACTOR
8 years ago
Pieter Wuille
3641141c8f
Move tx estimation data out of CCheckPointData
8 years ago
Pieter Wuille
a4bac66cca
[MOVEONLY] Move progress estimation out of checkpoints
8 years ago
Matt Corallo
80175472d1
Make CBlockIndex*es in net_processing const
8 years ago
Alex Morcos
78ae62d264
Add clarifying comments to fee estimation
8 years ago
Alex Morcos
dc008c462f
Add IsCurrentForFeeEstimatation
...
Make a more conservative notion of whether the node is caught up to the rest of the network and only count transactions as fee estimation data points if the node is caught up.
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Pieter Wuille
c44e4c467c
Make AcceptToMemoryPool take CTransactionRef
8 years ago
Alex Morcos
5f0e27f1a8
Increase mempool expiry time to 2 weeks
8 years ago
Matt Corallo
a13fa4c80f
Remove unused CDiskBlockPos* argument from ProcessNewBlock
8 years ago
Matt Corallo
2d6e5619af
Switch pblock in ProcessNewBlock to a shared_ptr
...
This (finally) fixes a performance regression in
b3b3c2a562
8 years ago
Matt Corallo
2736c44c8e
Make the optional pblock in ActivateBestChain a shared_ptr
8 years ago
Gregory Maxwell
c63198f1c7
Make QT runawayException call GetWarnings instead of directly access strMiscWarning.
...
This is a first step in avoiding racy accesses to strMiscWarning.
The change required moving GetWarnings and related globals to util.
8 years ago
Pieter Wuille
a1883536b4
Switch GetTransaction to returning a CTransactionRef
8 years ago
Matt Corallo
76faa3cdfe
Rename the remaining main.{h,cpp} to validation.{h,cpp}
8 years ago
Matt Corallo
e736772c56
Move network-msg-processing code out of main to its own file
8 years ago
Matt Corallo
2c8c57e72f
Document cs_main status when calling into PNB or PNBH
8 years ago
Matt Corallo
047ea1052d
Make fImporting an std::atomic
8 years ago
Matt Corallo
4a6b1f36b7
Expose AcceptBlockHeader through main.h
8 years ago
Matt Corallo
d2b88f97a1
Move orphan-conflict removal from main logic into a callback
...
This makes the orphan map a part of net-processing logic instead
of main logic.
8 years ago
MarcoFalke
fa7cc5a508
Set DEFAULT_LIMITFREERELAY = 0 kB/minute
8 years ago
Matt Corallo
eecffe50ef
Remove redundant duplicate-input check from CheckTransaction
8 years ago
Matt Corallo
ae22357607
Replace CValidationState param in ProcessNewBlock with BlockChecked
8 years ago
Matt Corallo
7c98ce584e
Remove pfrom parameter from ProcessNewBlock
...
This further decouples ProcessNewBlock from networking/peer logic.
8 years ago
Suhas Daftuar
88c35491ab
Fix compact block handling to not ban if block is invalid
8 years ago
Matt Corallo
d6ea737be1
Remove network state wipe from UnloadBlockIndex.
...
UnloadBlockIndex is only used during init if we end up reindexing
to clear our block state so that we can start over. However, at
that time no connections have been brought up as CConnman hasn't
been started yet, so all of the network processing state logic is
empty when its called.
Additionally, the initialization of the recentRejects set is moved
to InitPeerLogic.
8 years ago
Pieter Wuille
3f78562df5
Add DumpMempool and LoadMempool
8 years ago
Pieter Wuille
ced7c949e8
Add AcceptToMemoryPoolWithTime function
8 years ago
Geoffrey Tsui
d0b01f3a85
Explicitly pass const CChainParams& to LoadBlockIndexDB()
8 years ago
mruddy
fc146095d2
RPC: augment getblockchaininfo bip9_softforks data
8 years ago
Pieter Wuille
3ac6de0a04
Align constant names for maximum compact block / blocktxn depth
8 years ago
Matt Corallo
a9aec5c24d
Use BlockChecked signal to send reject messages from mapBlockSource
8 years ago
Matt Corallo
f5efa28393
Remove CConnman parameter from ProcessNewBlock/ActivateBestChain
8 years ago
Matt Corallo
fef1010199
Use CValidationInterface from chain logic to notify peer logic
...
This adds a new CValidationInterface subclass, defined in main.h,
to receive notifications of UpdatedBlockTip and use that to push
blocks to peers, instead of doing it directly from
ActivateBestChain.
8 years ago
Matt Corallo
aefcb7b70c
Move net-processing logic definitions together in main.h
8 years ago
Cory Fields
8d58c4d81f
net: Pass CConnman around as needed
8 years ago
Pieter Wuille
4424af5190
Predeclare PrecomputedTransactionData as sturct
8 years ago
Pieter Wuille
203f2121be
Reduce default number of blocks to check at startup
8 years ago
Pieter Wuille
5127c4f21c
Add preciousblock RPC
...
Includes a bugfix by Luke-Jr.
8 years ago
Pieter Wuille
35fe0393f2
Rename to PrecomputedTransactionData
8 years ago
Pieter Wuille
d2c5d044d0
Precompute sighashes
...
Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
8 years ago
leijurv
1aacfc2da5
various typos
8 years ago
Jorge Timón
a6cc299541
Mempool: Use Consensus::CheckTxInputs direclty over main::CheckInputs
9 years ago
Jorge Timón
c8664eeac7
Trivial: pass Consensus::Params& instead of CChainParams& in ContextualCheckBlock
9 years ago
Pieter Wuille
ab942c15bd
Treat high-sigop transactions as larger rather than rejecting them
9 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
9 years ago
Jorge Timón
6f3d616dc8
Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ContextualCheckBlock
9 years ago
Suhas Daftuar
96fa95361f
Improve handling of unconnecting headers
...
When processing a headers message that looks like a block announcement,
send peer a getheaders if the headers message won't connect.
Apply DoS points after too many consecutive unconnecting headers messages.
9 years ago
Jonas Nick
fdb43df23e
[qa] Add GetTransactionSigOpCost unit tests
9 years ago
Pieter Wuille
6032f6930a
Add rewind logic to deal with post-fork software updates
...
Includes logic for dealing with pruning by Suhas Daftuar.
9 years ago