A new tool is required for comparing a core snapshot with datanode API. The tool takes the following parameters:
snapshot DB path - a path to the core snapshot database
datanode connection string - a connection string to a running data node
e.g. vegatools difftool -s ./snapshot-tmp -d 127.0.0.1:3027
The above assumes that no blocks are being produced after the last snapshot in the database such that we can expect that the snapshot state represents the current state that should be returned by datanode.
The tool currently compares the following datasets:
account balances
diffOrders,
markets
parties
network limits
assets
delegations
epoch
vegatime
validator nodes data
network parameters
governance proposals
active deposits
active withdrawals
liquidity provisions
stake linking
banking transfers
TODO: positions
Need to consider porting to vega repo as vega tool.
A new tool is required for comparing a core snapshot with datanode API. The tool takes the following parameters:
e.g.
vegatools difftool -s ./snapshot-tmp -d 127.0.0.1:3027
The above assumes that no blocks are being produced after the last snapshot in the database such that we can expect that the snapshot state represents the current state that should be returned by datanode.
The tool currently compares the following datasets:
TODO: positions
Need to consider porting to vega repo as
vega tool
.