Pieter Wuille
6851107b3a
BIP9 Implementation
Inspired by former implementations by Eric Lombrozo and Rusty Russell, and
based on code by Jorge Timon.
5年前
Jorge Timón
e86756193e
MOVEONLY: non-consensus: from pow to chain:
- GetBlockProof
- GetBlockProofEquivalentTime
5年前
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
5年前
Luke Dashjr
b05a89b2de
Non-grammatical language improvements
6年前
Wladimir J. van der Laan
f5791c6ae3
Add more information to errors in ReadBlockFromDisk
A lot of times, disk corruption problems appear here.
To facilitate debugging and troubleshooting, add position information
to the error messages.
6年前
Wladimir J. van der Laan
734f85c4f0
Use arith_uint256 where necessary
Also add conversion from/to uint256 where needed.
6年前
Wladimir J. van der Laan
4f1524966a
Replace direct use of 0 with SetNull and IsNull
Replace x=0 with .SetNull(),
x==0 with IsNull(), x!=0 with !IsNull().
Replace uses of uint256(0) with uint256().
6年前
sandakersmann
f914f1a746
Added "Core" to copyright headers
Github-Pull: #5494
Rebased-From: 15de949bb9
6年前
Pavel Janík
bf7835c271
Fix small typos in comments and error messages
Rebased-From: 67b2d819cd
Github-Pull: #5404
6年前
Pieter Wuille
9dcd524f32
Make IsSuperMajority a standalone function
6年前
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
6年前
Pieter Wuille
63d1ae5556
Do all block index writes in a batch
6年前
Pavel Janík
84738627ce
Fix all header defines
6年前
jtimon
092b58d13d
CBlockIndex::GetBlockWork() + GetProofIncrement(nBits) -> GetBlockProof(CBlockIndex)
6年前
jtimon
99f41b9cf7
MOVEONLY: core.o -> core/block.o
6年前
Michael Ford
2fdc3351d7
Update comments in chain to be doxygen compatible
6年前
21E14
b7ae2c172a
Chain::SetTip return type to void
6年前
Cory Fields
85c579e3a6
script: add a slew of includes all around and drop includes from script.h
Lots of files ended up with indirect includes from script.h.
6年前
Pieter Wuille
341735eb8f
Headers-first synchronization
Many changes:
* Do not use 'getblocks', but 'getheaders', and use it to build a headers tree.
* Blocks are fetched in parallel from all available outbound peers, using a
limited moving window. When one peer stalls the movement of the window, it is
disconnected.
* No more orphan blocks. At all. We only ever request a block for which we have
verified the headers, and store it to disk immediately. This means that a
disk-fill attack would require PoW.
* Require protocol version 31800 for every peer (released in december 2010).
* No more syncnode (we sync from everyone we can, though limited to 1 during
initial *headers* sync).
* Introduce some extra named constants, comments and asserts.
6年前
Philip Kaufmann
7bec6dd230
cleanup license and header end comment in chain.cpp/.h
6年前
jtimon
e8b5f0d549
Move CBlockIndex, CChain and related code out of main
6年前