Skip to content

Commit

Permalink
btcjson: Update fields in GetBlockChainInfoResult
Browse files Browse the repository at this point in the history
Update the fields of GetBlockChainInfoResult to reflect the current state of
the RPC returned by other full-node implementations.

 * InitialBlockDownload - Node is in Initial Block Download mode if True.
 * SizeOnDisk - The estimated size of the block and undo files on disk.
  • Loading branch information
skreuzer committed Jan 3, 2021
1 parent 6bd4c64 commit 96936fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions btcjson/chainsvrresults.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,11 @@ type GetBlockChainInfoResult struct {
Difficulty float64 `json:"difficulty"`
MedianTime int64 `json:"mediantime"`
VerificationProgress float64 `json:"verificationprogress,omitempty"`
InitialBlockDownload bool `json:"initialblockdownload,omitempty"`
Pruned bool `json:"pruned"`
PruneHeight int32 `json:"pruneheight,omitempty"`
ChainWork string `json:"chainwork,omitempty"`
SizeOnDisk int64 `json:"size_on_disk,omitempty"`
*SoftForks
*UnifiedSoftForks
}
Expand Down

0 comments on commit 96936fe

Please sign in to comment.