decred / dcrtime

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

Unachored digest bug on restart #73

Closed lukebp closed 4 years ago

lukebp commented 4 years ago

Reproduce instructions:

  1. Submit a digest
  2. Restart dcrtimed before the digest has been anchored
  3. Wait until the next anchor cycle. You'll notice the submitted digest does not get included in it.
  4. Try to resubmit the digest and you get the already exists error. Try to verify the digest and you get the not anchored error. The digest is now stuck in a state of already existing but never being anchored.
amass01 commented 4 years ago

Looking

lukebp commented 4 years ago

This was a user error on my part. You can't change the flushSchedule without also changing the duration variable to match it.