aboutsummaryrefslogtreecommitdiff
path: root/contrib/signet/miner
AgeCommit message (Collapse)Author
2021-08-16refactor: replace remaining binascii method calls Zero-1729
2021-06-21scripted-diff: test: rename `FromHex` to `from_hex`Sebastian Falbesoner
-BEGIN VERIFY SCRIPT- sed -i 's/\<FromHex\>/from_hex/g' $(git grep -l FromHex) -END VERIFY SCRIPT- Co-authored-by: MarcoFalke <falke.marco@gmail.com>
2021-06-21test: remove `ToHex` helper, use .serialize().hex() insteadSebastian Falbesoner
2021-06-21test: introduce `tx_from_hex` helper for tx deserializationSebastian Falbesoner
`FromHex` is mostly used for transactions, so we introduce a shortcut `tx_from_hex` for `FromHex(CTransaction, hex_str)`.
2021-02-07contrib/signet/miner: remove debug codeAnthony Towns
2021-02-07contrib/signet/miner: Automatic timestamp for first blockAnthony Towns
When mining the first block of a new signet chain, pick a timestamp for the first block so that after mining 100 blocks the timestamp will be back to the current time -- this prevents an unnecessary delay before any miner rewards have matured enough to be spent. This takes into account that the delta between blocks may be shorter than 10 minutes due to attempting to increase the difficulty to match --nbits, but does not take into account the time spent actually generating the 100 blocks.
2021-02-07contrib/signet/miner: --grind-cmd is required for calibrateAnthony Towns
Thanks to muxator for spotting.
2021-02-07contrib/signet: Fix typosAnthony Towns
Thanks to muxator, JeremyRubin, and gruve-p for spotting.
2021-01-12contrib/signet: Add script for generating a signet chainAnthony Towns