Commit Graph

45 Commits

Author SHA1 Message Date
zhourong eec3966c76 fix(test): pass unit test 2021-04-28 14:17:43 +08:00
liweixia 2eb643289d fix: add changer lock 2021-04-27 16:05:37 +08:00
zhourong 6042c690c5 fix(*): fix some bugs when invoking eth tx 2021-04-26 20:01:27 +08:00
liweixia 49cab14fa4 feat: add evm 2021-04-26 20:01:27 +08:00
liweixia c78217c10a feat: add ledger interface 2021-04-26 20:01:27 +08:00
zhourong a3ff8630f0 feat(API): add web3 compatible APIs 2021-04-26 20:01:07 +08:00
jzhe ecd5c16414
Merge pull request #359 from meshplus/feat/add-wasm-ledger
Feat/add wasm ledger
2021-04-09 15:13:10 +08:00
treasersimplifies 778467527f feat(*): fix did registry init admin 2021-04-07 18:15:00 +08:00
zhourong e9e9222aad fix(ledger): fix codeHash be nil after getCode 2021-04-07 01:58:30 +08:00
dawn-to-dusk 2902f16647 feat(*): add governance module
1.Add governance built-in contract;
2.Add governance related tests.
2021-03-19 09:41:19 +08:00
dawn-to-dusk 9d03878c82 feat(*): modify the certificate validation method
1.Delete the certificate validation procedure after connect;

2.Select transport based on go-libp2p-cert when creating libp2p;

3.Delete the certificate related methods because they have been moved to the go-libp2p-cert.
2021-01-22 10:25:53 +08:00
zhourong af93ad5a74 refactor(executor): rename NewBlockEvent to ExecutedEvent and add TxHashList 2020-12-17 18:50:06 +08:00
liweixia 9bac16d161 refactor: move blockfile to kit lib 2020-11-27 02:25:09 +08:00
liweixia 6c1f7b4ef5 feat: add block file 2020-10-26 21:20:58 +08:00
zhourong 6cea4216ff refactor(*): update tx/hash/address 2020-10-22 13:49:05 +08:00
Aiden X e7244829c4 build: use NewHash and NewAddress 2020-10-21 23:46:21 +08:00
zhourong 52e758e5dc refactor(*): update Hash/Address related code in executor and ledger 2020-10-21 19:39:06 +08:00
zhourong 9a78f3f7f2 refactor(*): use new Transaction/Address/Hash in executor and ledger 2020-10-21 14:01:35 +08:00
treasersimplifies 65b922b57c fix(storage): dicard bitxhub storage package to use kit storage 2020-10-20 19:56:53 +08:00
zhourong db52ca33a5 test(ledger): add more unit test 2020-09-29 19:29:14 +08:00
zhourong bb86b87137 fix(ledger): fix query issue 2020-09-29 15:33:51 +08:00
zhourong 4c113637a6 refactor(*): optimize performance 2020-09-29 15:33:51 +08:00
zhourong 112931d37c feat(*): add api to get TPS 2020-09-22 20:05:56 +08:00
zhourong 8b3665c610 refactor(*): some optimization
1. save block and transactions separately
2. execute block in pipeline
2020-09-18 19:46:25 +08:00
zhourong 871c2f530e refactor(ledger): support parallel op for get/set state 2020-09-18 11:19:46 +08:00
Aiden X c66691ea31 feat(api): add block header signs func 2020-08-26 16:22:10 +08:00
zhourong 850a1e6142 refactor(*): update crypto
1. use ecdsa secp256k1 for signature
2. use ecdsa p256 for node certificate
2020-08-13 19:48:49 +08:00
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