clean up script
This commit is contained in:
parent
5687b6d7c1
commit
5ee451fabd
@ -64,11 +64,6 @@ NADDR=$(./src/bitcoin-cli -datadir=$datadir getnewaddress)
|
|||||||
# https://github.com/bitcoin/bitcoin/pull/19937#issuecomment-696419619
|
# https://github.com/bitcoin/bitcoin/pull/19937#issuecomment-696419619
|
||||||
|
|
||||||
|
|
||||||
# Start mining blocks
|
|
||||||
# Include miner.py script into docker
|
|
||||||
# Generate the first block to your Address using a specific block time
|
|
||||||
./contrib/signet/miner.py --cli="./src/bitcoin-cli -datadir=$datadir" generate 1 --set-block-time=$(date +%s) --address="$NADDR" --grind-cmd='./src/bitcoin-util grind'
|
|
||||||
|
|
||||||
# Navigate to the src directory(this assume that Docker workdir is set to the root)
|
# Navigate to the src directory(this assume that Docker workdir is set to the root)
|
||||||
cd src/
|
cd src/
|
||||||
|
|
||||||
@ -81,7 +76,7 @@ CLI="./bitcoin-cli -datadir=$datadir"
|
|||||||
NBITS=$($MINER calibrate --grind-cmd="$GRIND" --seconds=250)
|
NBITS=$($MINER calibrate --grind-cmd="$GRIND" --seconds=250)
|
||||||
|
|
||||||
# Generate an address for receiving mining rewards
|
# Generate an address for receiving mining rewards
|
||||||
ADDR=$(CLI -signet getnewaddress)
|
ADDR=$($CLI -signet getnewaddress)
|
||||||
|
|
||||||
# Advanced Block Generation Process
|
# Advanced Block Generation Process
|
||||||
# Generate and create a block template. This generates a PSBT, processes it, and submits the block to the Signet network
|
# Generate and create a block template. This generates a PSBT, processes it, and submits the block to the Signet network
|
||||||
@ -93,11 +88,6 @@ $CLI -signet getblocktemplate '{"rules": ["signet","segwit"]}' \
|
|||||||
| $CLI -signet -stdin submitblock
|
| $CLI -signet -stdin submitblock
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Mine the first block
|
|
||||||
$MINER --cli="$CLI" generate --grind-cmd="$GRIND" --address="$ADDR" --nbits=$NBITS
|
|
||||||
|
|
||||||
# Optional for continues mining
|
# Optional for continues mining
|
||||||
# $MINER --cli="$CLI" generate --grind-cmd="$GRIND" --address="$ADDR" --nbits=$NBITS --ongoing
|
# $MINER --cli="$CLI" generate --grind-cmd="$GRIND" --address="$ADDR" --nbits=$NBITS --ongoing
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user