decred / dcrtime

Decred anchored timestamp client, proxy, and server.
ISC License
28 stars 23 forks source link

[cli] Add fallback to new v2 routes #63

Closed thi4go closed 4 years ago

thi4go commented 4 years ago

This diff makes the cli automatically call either the batched or single timestamp/verify route. It does that by checking the lenght of the passed arguments to the cli.

It adds uploadV2 that calls either uploadV2Single or uploadV2Batch, as well as downloadV2, that calls either downloadV2Single or downloadV2Batch.