Thomas E Lackey
167cd2839c
Rebase of #1 onto real `v5` branch. * Updates to the v5 schema, by linking the statediff plugin (as of this branch cerc-io/plugeth-statediff#15). This replaces the existing builder code. * Adds basic CI workflows * Updates Docker config and docs, cleans up some things Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com> Reviewed-on: #2 Co-authored-by: Roy Crihfield <roy@manteia.ltd> Co-committed-by: Roy Crihfield <roy@manteia.ltd> Co-authored-by: Roy Crihfield <roy@manteia.ltd> Reviewed-on: #3
23 lines
419 B
Bash
Executable File
23 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
FROM=$1
|
|
TO=$2
|
|
URL='127.0.0.1:8545'
|
|
|
|
DATA='{
|
|
"jsonrpc": "2.0",
|
|
"method": "statediff_writeStateDiffsInRange",
|
|
"params": ['"$FROM"', '"$TO"', {
|
|
"includeBlock": true,
|
|
"includeReceipts": true,
|
|
"includeTD": true,
|
|
"includeCode": true
|
|
}
|
|
],
|
|
"id": 1
|
|
}'
|
|
|
|
exec curl -s $URL -X POST -H 'Content-Type: application/json' --data "$DATA"
|