bradyrussell / UISCoin

Java cryptocurrency made to learn more about Bitcoin.
https://bradyrussell.github.io/UISCoin/javadoc
0 stars 1 forks source link

a script that passes now but fails later will break chain #32

Open bradyrussell opened 3 years ago

bradyrussell commented 3 years ago

right now TIME could be used like

PUSH (timestamp) TIME LESSTHAN VERIFY

bradyrussell commented 3 years ago

disabled TIME due to this issue. we can reenable it if I use the confirmation time if the script is in a confirmed block

bradyrussell commented 3 years ago

TIME would be cool in that sense because we could use it to deterministically choose a 'random' enough value like TIME PUSH MODULO

then branch on that maybe pay different addresses?

bradyrussell commented 3 years ago

getting the block time with how i have things right now would be a pain. this is gonna be on the backlog