Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: prepare v0.18.4.0 #9722

Open
wants to merge 1 commit into
base: release-v0.18
Choose a base branch
from

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented Jan 25, 2025

No description provided.

@plowsof
Copy link
Contributor

plowsof commented Jan 28, 2025

monero-blockchain-export --data-dir /var/lib/monero/.bitmonero --blocksdat --output-file blockchain.dat --block-stop 3333000
sha256sum blockchain.dat 
949ddbdb10b60fb4d3cfc9edb4bee41b52e662c2b7b4af8b43285ee38fed8296  blockchain.dat
height="3333000"
difficulty="0x5c7d93afaa02fe0"
hash="6884cd02a4eb4dd885f2b41bebaa063dda2645e510ed10c1cb0d12f75c3f6a47"
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"

✔️

@selsta selsta mentioned this pull request Jan 31, 2025
7 tasks
Copy link
Collaborator

@0xFFFC0000 0xFFFC0000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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