Luke Parker
8041a0d845
Initial Tributary handling
2023-04-20 05:05:17 -04:00
Luke Parker
9e1f3fc85c
Make MainDB into SubstrateDB
2023-04-20 05:04:08 -04:00
Luke Parker
396e5322b4
Code a method to determine the activation block before any block has consensus
...
[0; 32] is a magic for no block has been set yet due to this being the first
key pair. If [0; 32] is the latest finalized block, the processor determines
an activation block based on timestamps.
This doesn't use an Option for ergonomic reasons.
2023-04-18 03:04:52 -04:00
Luke Parker
9da0eb69c7
Use an enum for Coin/NetworkId
...
It originally wasn't an enum so software which had yet to update before an
integration wouldn't error (as now enums are strictly typed). The strict typing
is preferable though.
2023-04-18 02:04:47 -04:00
Luke Parker
6f3b5f4535
Tweak ConfirmKeyPair to alleviate database requirements of coordinator
2023-04-18 01:09:22 -04:00
Luke Parker
5a499de4ca
Remove BatchSigned
...
SubstrateBlock's provision of the most recently acknowledged block has
equivalent information with the same latency. Accordingly, there's no need for
it.
2023-04-17 20:19:15 -04:00
Luke Parker
e26b861d25
Move ConfirmKeyPair from key_gen to substrate
...
Clarifies the emitter and accordingly why its mutations are justified.
2023-04-17 19:40:17 -04:00
Luke Parker
92a868e574
Add a processor API to the coordinator
2023-04-17 02:10:33 -04:00
Luke Parker
595cd6d404
Rename transaction file to tributary, add function for genesis
2023-04-17 02:09:29 -04:00
Luke Parker
4d43c04916
Clean up the Substrate block processing code
2023-04-17 00:50:56 -04:00
Luke Parker
2604746586
Fill out code for the rest of the Substrate events
2023-04-16 03:18:52 -04:00
Luke Parker
79655672ef
Make progres on handling NewSet events
...
Further bones out the coordinator.
2023-04-16 00:51:56 -04:00
Luke Parker
eafd054296
Start defining the coordinator
2023-04-15 17:38:47 -04:00
Luke Parker
d5a12a9b97
Make TransactionKind have a reference to Signed
...
Broken commit due to partial staging of one file.
2023-04-12 09:38:20 -04:00
Luke Parker
402a7be966
Block contructor and tests
2023-04-11 20:24:27 -04:00
Luke Parker
119d25be49
Clarify transaction length sizing
2023-04-11 19:18:26 -04:00
Luke Parker
2cfee536f6
Define all coordinator transaction types
2023-04-11 19:04:53 -04:00
Luke Parker
de52c4db7f
Add empty coordinator
2023-04-11 09:21:35 -04:00