Skip to content

build: prepare v0.18.5.0#10406

Open
selsta wants to merge 1 commit intomonero-project:release-v0.18from
selsta:prepare-v0.18.5.0
Open

build: prepare v0.18.5.0#10406
selsta wants to merge 1 commit intomonero-project:release-v0.18from
selsta:prepare-v0.18.5.0

Conversation

@selsta
Copy link
Copy Markdown
Collaborator

@selsta selsta commented Apr 8, 2026

No description provided.

@plowsof
Copy link
Copy Markdown
Contributor

plowsof commented Apr 10, 2026

# monero-blockchain-export --data-dir /var/lib/monero/.bitmonero --blocksdat --output-file blockchain.dat --block-stop 3648000
2026-04-10 10:46:19.816	W Starting...
2026-04-10 10:46:19.816	W Export output file: blockchain.dat
# sha256sum blockchain.dat 
3703fb1a525ca140397fb52760534b618757345639415b87cde53d8de09db87f  blockchain.dat
height="3648000"
difficulty="0x8836f971100c162"
hash="0b4277c3e041564b30511202fdebabdb624d1c4272c70abdb9899a281ef18839"
node=127.0.0.1:18081
REQ=$(curl http://${node}/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_block_header_by_height","params":{"height":'${height}'}}' -H 'Content-Type: application/json')
DATA=$(echo $REQ | jq '.result.block_header')
actual_difficulty=$(echo $DATA | jq -r '.wide_cumulative_difficulty' )
actual_hash=$(echo $DATA | jq -r '.hash')
if [ "$actual_hash" != "$hash" ]; then 
        echo "hashes don't match"; exit
fi
if [ "$difficulty" != "$actual_difficulty" ]; then
        echo "difficulty not equal"; exit
fi
echo "OK"

✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants