- Ter uma máquina :)
- Ter paciência! :P
- Baixar o VSCode na sua máquina https://code.visualstudio.com/download
- Seguir esse mini-tutorial para deixar o bitcoind já compilado pra você debugar!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BLOCKCHAININFO=$(bitcoin-cli getblockchaininfo) | |
BLOCKS=$(echo "$BLOCKCHAININFO" | jq .blocks) | |
TAPROOT=$(echo "$BLOCKCHAININFO" | jq .softforks.taproot.bip9) | |
SINCE=$(echo "$TAPROOT" | jq .since) | |
PERIOD=$(echo "$TAPROOT" | jq .statistics.period) | |
BLOCKS=$(echo "$BLOCKCHAININFO" | jq .blocks) | |
PERIOD_COUNT=$(((BLOCKS - SINCE) / PERIOD)) | |
SINCE=$((SINCE + (PERIOD * PERIOD_COUNT))) | |
ELAPSED=$(echo "$TAPROOT" | jq .statistics.elapsed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In order to run this example in Unix-like systems, like linux, you should click in "raw" and copy-paste the code in a .js file | |
# like main.js. The run the follow: | |
npm init | |
npm install node-bitcoin-rpc bignumber.js | |
node main.js |