arnaucube
0cf1ed217b
Abstract TxProcessor from StateDB
...
- Abstract TxProcessor from StateDB
- Upgrade to last version of go-merkletree for the key-value DB usage
2020-12-29 11:14:38 +01:00
Eduard S
2205fcadbc
Delete old checkpoints in stateDB automatically
...
Introduce a constructor parameter for the StateDB called `keep`, which tells
how many checkpoints to keep. When doing a new checkpoint, if the number of
existing checkpoints exeeds `keep`, the oldest ones will be deleted.
2020-12-24 13:35:47 +01:00
arnaucube
150597c282
Parametrize ChainID
2020-12-23 15:23:48 +01:00
arnaucube
4b10549822
mv of babyjub.PublicKey to babyjub.PublicKeyComp
...
Update usage of `*babyjub.PublicKey` to `babyjub.PublicKeyComp`
- when the key is not defined, internally is used `babyjub.EmptyBJJComp`, which is a `[32]byte` of zeroes of type `babyjub.PublicKeyComp`
- the API continues returning `nil` when the key is not defined
2020-12-22 11:29:47 +01:00
Eduard S
ced42634da
Wrap all errors with tracerr
2020-11-30 12:58:36 +01:00
arnaucube
f65a6047b4
Add Til set w minimum flow, small fixes at StateDB
2020-11-02 12:47:34 +01:00
arnaucube
aaa71a6b11
StateDB store Idxs with TokenID at the db-key
2020-10-27 17:24:10 +01:00
Eduard S
88ddbbcddc
Delete tmp folders from tests, Resolve #105
2020-10-20 13:13:10 +02:00
Arnau B
5097939b12
Avoid using pointers in common
2020-10-08 16:42:16 +02:00
a_bennassar
49366e3fa4
Feature/null refactor ( #173 )
...
* WIP: rebase
* Make nullable fields use pointers
2020-10-06 10:34:49 +02:00
arnaucube
3374a4754d
Add StateDB compute nonces on ProcessTx L2Tx
...
Add StateDB compute nonces on ProcessTx L2Tx, and update StateDB for
type TypeSynchronizer, TypeTxSelector, TypeBatchBuilder
2020-10-02 11:54:58 +02:00
arnaucube
11c45cfc2f
Update TxProcessor L2Tx logic for case ToIdx==0
2020-10-01 10:47:44 +02:00
arnaucube
934b6120ae
Add StateDB set & get Idx by EthAddr & BJJ methods
2020-09-21 22:02:20 +02:00
arnaucube
69fe471f11
Add StateTree leafs & ExtTree data ZKI calculation
2020-09-10 17:58:08 +02:00