Suhas Daftuar
fca1a415ce
Rename "block cost" to "block weight"
...
Github-Pull: #8363
Rebased-From: 2c06bae39e
9 years ago
Suhas Daftuar
27362dda4d
Remove -blockminsize option
9 years ago
Suhas Daftuar
d2e46e1b5c
Remove addScoreTxs()
9 years ago
Suhas Daftuar
6dd4bc289c
Exclude witness transactions in addPackageTxs() pre-segwit activation
9 years ago
Suhas Daftuar
f15c2cde45
CreateNewBlock: add support for size-accounting to addPackageTxs
...
Includes a change to not continue to use size-accounting in addScoreTxs
or addPackageTxs just because addPriorityTxs() is used.
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
Suhas Daftuar
c82a4e9a63
Use ancestor-feerate based transaction selection for mining
...
Includes changes by Pieter Wuille
9 years ago
Alex Morcos
4dc94d1036
Refactor CreateNewBlock to be a method of the BlockAssembler class
9 years ago
Leviathn
8d1de43f0c
Remove internal miner
...
This code removes the internal miner which is only useful on Testnet.
This leaves the internal miner that is useful on RegTest intact.
9 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
Luke Dashjr
b966aa836a
Constrain constant values to a single location in code
9 years ago
Jorge Timón
6bc9e4056b
Chainparams: Explicit CChainParams arg for miner:
...
-BitcoinMiner
-CreateNewBlock
-GenerateBitcoins
-ProcessBlockFound
9 years ago
Luke Dashjr
5f9260f458
Bugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also show correct default in getmininginfo
9 years ago
Daniel Kraft
69c3bde448
Add some const declarations where they are appropriate.
...
Declare some arguments of functions as "const" pointers where they are
not meant to be modified.
10 years ago
Jonas Schnelli
d0fc10a844
detach wallet from miner
10 years ago
Mark Friedenbach
ef8dfe41d1
Prevent block.nTime from decreasing
...
Under some circumstances it is possible for there to be a significant,
discontinuous jump in a node's clock value. On mining nodes, this can
result in block templates which are no longer valid due to time-based
nLockTime constraints. UpdateTime() is modified so that it will never
decrease a block's nLockTime, thereby preventing such invalidations.
10 years ago
Jonas Schnelli
30c43d9821
miner.h: fix clang warning because of class/struct mix
...
- class 'Params' was previously declared as a struct
10 years ago
Jorge Timón
bebe7282ff
Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getter
10 years ago
Wladimir J. van der Laan
48265f3cf4
Revert mining changes in #5957
...
This reverts commit e2edf95cd3
6b04508e37
0df67f1f7a
,
except the changes to the RPC tests.
A `generate` RPC call is introduced based on the old code.
10 years ago
Pieter Wuille
e2edf95cd3
Bugfix: make CreateNewBlock return pindexPrev
10 years ago
Pieter Wuille
6b04508e37
Introduce separate 'generate' RPC call
10 years ago
Luke Dashjr
2ce63d395f
MOVEONLY: Move struct CBlockTemplate to miner.h (from main.h)
10 years ago
jtimon
0cc0d8d60b
Get rid of the internal miner's hashmeter
10 years ago
Wladimir J. van der Laan
269d8ba0d2
Remove declaration of no longer existent CheckWork
...
Also make ProcessBlockFound static as it is not used outside
miner.cpp.
Alternative implementation of #5549 .
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Michael Ford
78253fcbad
Remove references to X11 licence
10 years ago
jtimon
22c4272bf4
MOVEONLY: Move void UpdateTime() from pow.o to miner.o (plus fix include main.h -> chain.h)
10 years ago
Pieter Wuille
85aab2a088
Switch miner.cpp to use sha2 instead of OpenSSL.
11 years ago
Philip Kaufmann
ac14bcc1f1
small formatting, indentation and comment fixes
...
- contains zero code changes
11 years ago
Gavin Andresen
c8b74258ba
setgenerate creates multiple blocks in -regtest mode
...
I'm writing some wallet regression tests using -regtest mode, and
need to generate an initial multi-hundred-block chain. Repeatedly
calling setgenerate to generate one block is slow and doesn't
work properly, because block creation happens asynchronously.
This adds two features to setgenerate in -regtest mode:
1) Instead of being interpreted as number of threads to start, the
third argument is the number of blocks to generate.
2) setgenerate will not return until the block creation threads
have created the requested number of blocks.
11 years ago
Gavin Andresen
3a6faabecf
Fix struct/class declaration mismatches
11 years ago
Brandon Dahler
51ed9ec971
Cleanup code using forward declarations.
...
Use misc methods of avoiding unnecesary header includes.
Replace int typedefs with int##_t from stdint.h.
Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
Normalize QT_VERSION ifs where possible.
Resolve some indirect dependencies as direct ones.
Remove extern declarations from .cpp files.
11 years ago
super3
db0e8ccd90
Bump Year Number to 2013
11 years ago
Philip Kaufmann
8d750f1d21
internal miner: move 2 globals from main to miner
...
- moves 2 global variables from main.cpp/h to miner.cpp/h
- also removes 2 unneded includes in miner.cpp, that come from miner.h
already
11 years ago
Jeff Garzik
f1dbed9233
miner: constify CreateNewBlock() arg scriptPubKeyIn
11 years ago
Jeff Garzik
7e17018995
CreateNewBlock() now takes scriptPubKey argument,
...
rather than a key.
CreateNewBlockWithKey() helper is added to restore existing functionality,
making this an equivalent-transformation change.
11 years ago
Jeff Garzik
d247a5d130
Move internal miner/block creation to separate miner.cpp module.
...
Public functions referenced elsewhere are added to miner.h.
12 years ago