Alexader
62314ec280
refactor(*): ledger is not restricted as readonly
...
readonly tx is only distinguashed by api of executor
the ledger under it will be the same instance of Ledger
2020-07-16 17:33:34 +08:00
Alexader
7f6da37901
fix(ledger): new view ledger instance err
...
1. move the ledger db initialization part out of Ledger constrcutor
2. revise unit test and tester
2020-07-15 10:55:03 +08:00
Alexader
447f699bf9
feat(*): add readonly transaction api and core implementation
...
1. add readonly flag in Ledger constructor and add control to Ledger's
functions concerned about writing to ledger
2. refactor error handling in test files
3. add a readolny executor for readonly tx
2020-07-13 20:40:10 +08:00
Aiden X
bedbc5be35
Merge pull request #96 from meshplus/fix/ledger-cache
...
fix(ledger): fix ledger query issue
2020-06-21 22:34:02 +08:00
zhourong
b8b83b8327
fix(ledger): fix ledger query issue
2020-06-19 14:52:05 +08:00
zhourong
3a48326d24
refactor(*): move interchain counter from block header to interchain meta
2020-06-08 15:21:39 +08:00
zhourong
c6e48f257d
feat(*): construct interchain txs merkle tree
2020-05-28 10:55:09 +08:00
zhourong
73a6820e9b
refactor(config): read genesis config from genesis.json
2020-05-22 14:40:44 +08:00
jiangzhe
1e47675fd1
feat(monitor):add monitor point
2020-05-21 19:08:53 +08:00
zhourong
8d71fd392f
refactor(*): separate data persistence from block execution
2020-05-08 11:09:13 +08:00
Aiden X
381798c319
Merge pull request #61 from meshplus/ledger
...
refactor(ledger): add interface to remove journal
2020-04-29 16:40:02 +08:00
zhourong
a3b2be6909
fix(ledger): fix concurrent map writes
2020-04-28 16:41:27 +08:00
zhourong
e72cb6cbab
refactor(ledger): add interface to remove journal
2020-04-28 16:27:15 +08:00
zhourong
06869782ce
refactor(*): deal with DB error in storage
2020-04-28 11:11:34 +08:00
zhourong
e2b5302f22
refactor(ledger): rollback ledger to a certain block according to the journals
2020-04-27 17:18:22 +08:00
zhourong
67b059aa45
fix(ledger): get prevJournalHash when new ledger
2020-04-27 14:00:46 +08:00
zhourong
86f946d2d4
refactor(ledger): use KV instead of tree
2020-04-26 20:49:28 +08:00
Aiden X
d5b4071447
feat(*): init project
2020-03-30 00:11:21 +08:00