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.3.4 #9345

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented May 29, 2024

No description provided.

@plowsof
Copy link
Contributor

plowsof commented May 29, 2024

monero-blockchain-export --data-dir /var/lib/monero/.bitmonero --blocksdat --output-file blockchain.dat --block-stop 3159500
sha256sum blockchain.dat 
b57e82f2aad8b08a5cece78b9839b8184e2959fdb0f44be6571fa8e45ce66de2  blockchain.dat
height="3159500"
difficulty="0x4ee8653b54b8d40"
hash="985a58096a03b7369a8b56cec6e77ffa6cc98f94d8b57dc9affd61c8477a852e"
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
Copy link
Collaborator Author

selsta commented Jul 22, 2024

Updated with newer checkpoints.

@plowsof
Copy link
Contributor

plowsof commented Jul 22, 2024

$ monero-blockchain-export --data-dir /var/lib/monero/.bitmonero --blocksdat --output-file blockchain.dat --block-stop 3198000
$ sha256sum blockchain.dat 
8ada865350270fd008397684d978dac75ea4029a8a1ffcaa9975c43be119ec19  blockchain.dat
height="3198000"
difficulty="0x517d415fee3a816"
hash="1d685b39be51e4e84e0af69fa78e023c7cb21de7d33acd012d0371d5f78712d5"
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}'}}' >
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"

✔️

Copy link
Contributor

@sneurlax sneurlax left a comment

Choose a reason for hiding this comment

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

These changes match many similar "build: prepare" PRs, LGTM

@luigi1111 luigi1111 merged commit c6d17a0 into monero-project:release-v0.18 Aug 13, 2024
17 checks passed
@selsta selsta deleted the prepare-v0.18.3.4 branch August 14, 2024 12:42
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.

None yet

5 participants