Add Confirmations config option. This is the minimum amount of confirmations required to return the ChainTimestamp. Default is 6.
Add MaxDigests config option. This is the max amount of digests that can be queried. Default is 20.
Return Confirmations and MinConfirmations when the digest is flushed but we still doesn’t have the Blockchain proof ready (ChainTimestamp != 0) for digests in the Verify request.
~Omit empty structs from the Verify request. When a Verify request is made only with digests, omit the TimestampsReply struct and when a Verify request is made only with timestamps, omit the DigestReply struct.~
Add /last-digests route to api/v2. This route receives a number as parameter and returns the last number digests added to the backend (anchored or not).
Obs: /last-digests make use of the getTimestamp func to query the collections. In order to use this endpoint the enablecollections config option should be set to true, otherwise it will return an empty array.
Depends on: https://github.com/decred/dcrtime/pull/81
This PR:
Add Confirmations config option. This is the minimum amount of confirmations required to return the ChainTimestamp. Default is 6.
Add MaxDigests config option. This is the max amount of digests that can be queried. Default is 20.
Return Confirmations and MinConfirmations when the digest is flushed but we still doesn’t have the Blockchain proof ready (ChainTimestamp != 0) for digests in the Verify request.
~Omit empty structs from the Verify request. When a Verify request is made only with digests, omit the TimestampsReply struct and when a Verify request is made only with timestamps, omit the DigestReply struct.~
Add
/last-digests
route to api/v2. This route receives anumber
as parameter and returns the lastnumber
digests added to the backend (anchored or not).Obs:
/last-digests
make use of thegetTimestamp func
to query the collections. In order to use this endpoint theenablecollections
config option should be set to true, otherwise it will return an empty array.https://github.com/decred/dcrtime/blob/bbebe6df45a8c650c4e605d778494480b056f121/dcrtimed/backend/filesystem/filesystem.go#L424
TODO
/last-digests
to the api/v2 documentation