You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{RPCResult::Type::NUM, "blocks", "number of blocks in this chainstate"},
2804
+
{RPCResult::Type::STR_HEX, "bestblockhash", "blockhash of the tip"},
2805
+
{RPCResult::Type::NUM, "difficulty", "difficulty of the tip"},
2806
+
{RPCResult::Type::NUM, "verificationprogress", "progress towards the network tip"},
2807
+
{RPCResult::Type::STR_HEX, "snapshot_blockhash", /*optional=*/true, "the base block of the snapshot this chainstate is based on, if any"},
2808
+
{RPCResult::Type::NUM, "coins_db_cache_bytes", "size of the coinsdb cache"},
2809
+
{RPCResult::Type::NUM, "coins_tip_cache_bytes", "size of the coinstip cache"},
2810
+
};
2811
+
2812
+
static RPCHelpMan getchainstates()
2813
+
{
2814
+
return RPCHelpMan{
2815
+
"getchainstates",
2816
+
"\nReturn information about chainstates.\n",
2817
+
{},
2818
+
RPCResult{
2819
+
RPCResult::Type::OBJ, "", "", {
2820
+
{RPCResult::Type::NUM, "headers", "the number of headers seen so far"},
2821
+
{RPCResult::Type::OBJ, "normal", /*optional=*/true, "fully validated chainstate containing blocks this node has validated starting from the genesis block", RPCHelpForChainstate},
2822
+
{RPCResult::Type::OBJ, "snapshot", /*optional=*/true, "only present if an assumeutxo snapshot is loaded. Partially validated chainstate containing blocks this node has validated starting from the snapshot. After the snapshot is validated (when the 'normal' chainstate advances far enough to validate it), this chainstate will replace and become the 'normal' chainstate.", RPCHelpForChainstate},
0 commit comments