Jianping Wu
70df11c1a7
Fixed unit test blockchain generation.
6 years ago
Jianping Wu
1e55d22ac0
Introduced block legacy mode for regtests.
6 years ago
Jianping Wu
937095dd4d
WIP: started fixing make check. Fixed difficulty computation.
6 years ago
Jianping Wu
d48d05a182
Supported Cryptonight Variant 4.
6 years ago
Jianping Wu
8766247be1
Fixed CN RPC call transfer.
6 years ago
Jianping Wu
3a657f0615
WIP: fixed PoW hash computation.
6 years ago
Jianping Wu
9e442eb109
WIP: fixed block serialization.
6 years ago
Jianping Wu
57ab5c7255
WIP: implemented submitblock.
6 years ago
Jianping Wu
bbb78c76a0
WIP: built with latest cn code.
6 years ago
Jianping Wu
baf31da4a7
WIP: integrated latest cn code.
6 years ago
Jianping Wu
80396a7a0f
WIP: added cn header to block header.
6 years ago
Jianping Wu
348513dda6
Upgraded to Cryptonight V8.
6 years ago
Jianping Wu
29eb41121d
CTransaction, GetValueOut(bool fExcludeKeva)
6 years ago
Jianping Wu
c56fb50b55
WIP: namespace/key
6 years ago
Jianping Wu
7f27245431
Switched to cryptonight PoW.
6 years ago
Jianping Wu
fac4394247
Started working on Cryptonight.
6 years ago
shaolinfry
4b588c670c
Litecoin: Add scrypt N=1024 PoW
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
MeshCollider
1a445343f6
scripted-diff: Replace #include "" with #include <> (ryanofsky)
...
-BEGIN VERIFY SCRIPT-
for f in \
src/*.cpp \
src/*.h \
src/bench/*.cpp \
src/bench/*.h \
src/compat/*.cpp \
src/compat/*.h \
src/consensus/*.cpp \
src/consensus/*.h \
src/crypto/*.cpp \
src/crypto/*.h \
src/crypto/ctaes/*.h \
src/policy/*.cpp \
src/policy/*.h \
src/primitives/*.cpp \
src/primitives/*.h \
src/qt/*.cpp \
src/qt/*.h \
src/qt/test/*.cpp \
src/qt/test/*.h \
src/rpc/*.cpp \
src/rpc/*.h \
src/script/*.cpp \
src/script/*.h \
src/support/*.cpp \
src/support/*.h \
src/support/allocators/*.h \
src/test/*.cpp \
src/test/*.h \
src/wallet/*.cpp \
src/wallet/*.h \
src/wallet/test/*.cpp \
src/wallet/test/*.h \
src/zmq/*.cpp \
src/zmq/*.h
do
base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f
done
-END VERIFY SCRIPT-
7 years ago
practicalswift
64fb0ac016
Declare single-argument (non-converting) constructors "explicit"
...
In order to avoid unintended implicit conversions.
7 years ago
Dag Robole
72f00608d0
Replace traditional for with ranged for in primitives
8 years ago
Gregory Maxwell
3babbcb487
Remove confusing MAX_BLOCK_BASE_SIZE.
...
Some people keep thinking that MAX_BLOCK_BASE_SIZE is a separate
size limit from the weight limit when it fact it is superfluous,
and used in early tests before the witness data has been
validated or just to compute worst case sizes. The size checks
that use it would not behave any differently consensus wise
if they were eliminated completely.
Its correct value is not independently settable but is a function
of the weight limit and weight formula.
This patch just eliminates it and uses the scale factor as
required to compute the worse case constants.
It also moves the weight factor out of primitives into consensus,
which is a more logical place for it.
8 years ago
Jeremy Rubin
37495e0d8d
Reorder C{,Mutable}Transaction for better packing
8 years ago
Pieter Wuille
0aadc11fd8
Avoid dereference-of-casted-pointer
8 years ago
practicalswift
656dbd871a
Perform member initialization in initialization lists where possible
8 years ago
Jorge Timón
330bb5a456
Consensus: Minimal way to move dust out of consensus
8 years ago
Marcos Mayorga
4fbae77929
Improved efficiency in COutPoint constructors
8 years ago
Alex Morcos
359e8a03d1
[cleanup] Remove coin age priority completely.
...
Remove GetPriority and ComputePriority. Remove internal machinery for tracking priority in CTxMemPoolEntry.
8 years ago
Suhas Daftuar
02c57b521a
Optimize GetWitnessHash() for non-segwit transactions
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
91335ba389
Remove unused MakeTransactionRef overloads
8 years ago
BtcDrak
1f0ca1ae1c
Bump default transaction version to 2
8 years ago
Pieter Wuille
f6fb7acda4
Move CTxInWitness inside CTxIn
8 years ago
Pieter Wuille
81e3228fcb
Make CTransaction actually immutable
8 years ago
Pieter Wuille
b4e4ba475a
Introduce convenience type CTransactionRef
8 years ago
Pieter Wuille
1662b437b3
Make CBlock::vtx a vector of shared_ptr<CTransaction>
8 years ago
Pieter Wuille
da60506fc8
Add deserializing constructors to CTransaction and CMutableTransaction
8 years ago
Pieter Wuille
528472111b
Get rid of nType and nVersion
...
Remove the nType and nVersion as parameters to all serialization methods
and functions. There is only one place where it's read and has an impact
(in CAddress), and even there it does not impact any of the recursively
invoked serializers.
Instead, the few places that need nType or nVersion are changed to read
it directly from the stream object, through GetType() and GetVersion()
methods which are added to all stream classes.
8 years ago
Pieter Wuille
657e05ab2e
Make GetSerializeSize a wrapper on top of CSizeComputer
...
Given that in default GetSerializeSize implementations created by
ADD_SERIALIZE_METHODS we're already using CSizeComputer(), get rid
of the specialized GetSerializeSize methods everywhere, and just use
CSizeComputer. This removes a lot of code which isn't actually used
anywhere.
For CCompactSize and CVarInt this actually removes a more efficient
size computing algorithm, which is brought back in a later commit.
8 years ago
Matt Corallo
190fd321ad
Remove unused CTxOut::GetHash()
8 years ago
Hampus Sjöberg
fdf82fba31
Adding method GetTotalSize() to CTransaction
...
GetTotalSize() returns the total transaction size (including witness) in
bytes.
8 years ago
MarcoFalke
fa785d1211
Use __func__ to get function name for output printing
8 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
9 years ago
Daniel Cousens
e37b16a75c
transaction: clarify witness branches
9 years ago
Bob McElrath
36ae37a9f9
Rename CTxinWitness -> CTxInWitness
9 years ago
Pieter Wuille
2b1f6f9ccf
BIP141: Other consensus critical limits, and BIP145
...
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
9 years ago
Pieter Wuille
8b49040854
BIP141: Commitment structure and deployment
...
Includes a fix by Suhas Daftuar and LongShao007
9 years ago
Pieter Wuille
7030d9eb47
BIP144: Serialization, hashes, relay (sender side)
...
Contains refactorings by Eric Lombrozo.
Contains fixup by Nicolas Dorier.
Contains cleanup of CInv::GetCommand by Alex Morcos
9 years ago
Pieter Wuille
eff736e55e
Reformat version in UpdateTip and other messages
...
Also remove the hardly-readable nBits from UpdateTip's log message.
9 years ago
BtcDrak
12c89c9185
Policy: allow transaction version 2 relay policy.
...
This commit introduces a way to gracefully bump the default
transaction version in a two step process.
9 years ago