This modifies the ProcessBlock function in the blockchain package to return the fork length for the connected block and updates all callers and tests accordingly. Several of the internal functions which ProcessBlock calls are also updated in order to bubble the necessary information back up so it can be returned. It does not make any behavioral changes. This is being done to better expose information about the position of the block within the chain to callers without them having to make additional queries. |
||
|---|---|---|
| .. | ||
| addblock | ||
| dcrctl | ||
| findcheckpoint | ||
| gencerts | ||
| promptsecret | ||