Commit Graph

66 Commits

Author SHA1 Message Date
Alexader 211fca0a43 test(contracts): add test for interchain menager 2021-01-27 16:25:07 +08:00
Alexader 884e02ec17 test(contracts): add test for contracts 2021-01-26 19:07:43 +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
Lizen0512 2d3e749dff perf(*): add localList to mark the txs received from api to reduce the number of signature verifications 2020-12-30 21:45:30 +08:00
zhourong 1899e816b6 fix(executor): check asset exchange id in asset_exchange.go 2020-12-23 12:59:18 +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
Aiden X 03fed65ff5
Merge pull request #263 from meshplus/fix/fix-for-bug
fix(executor): fix l2root pointer acquisition in for cycle
2020-11-25 19:09:43 +08:00
Sandy Zhou d7a4667998
Merge pull request #250 from meshplus/fix/fix-bugs
Fix/fix bugs
2020-11-24 16:52:24 +08:00
zhourong 26f23b8710 fix(executor): fix l2root pointer acquisition in for cycle 2020-11-23 19:59:37 +08:00
zhourong 467228f7bc refactor(executor): adjust log level 2020-11-23 14:19:52 +08:00
jzhe f07ca2841d fix(*): update interchain contract 2020-11-18 10:36:12 +08:00
zhourong 108b2e8ea8 refactor(*): add executor logger to serial executor 2020-10-27 13:55:57 +08:00
liweixia 6c1f7b4ef5 feat: add block file 2020-10-26 21:20:58 +08:00
zhourong 9b67423590 refactor(*): optimize interchain tx execution 2020-10-23 18:48:53 +08:00
zhourong 51b5cc7d24 refactor(*): add contract register support 2020-10-23 17:11:24 +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
Aiden X cb74880701 build: update core, kit and model in tester 2020-10-21 19:26:41 +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 f5c3a39126 refactor(executor): module split 2020-10-16 11:28:22 +08:00
zhourong 4be06f3276 refactor(executor): post block event after block is persisted 2020-10-14 17:24:47 +08:00
Lizen0512 41141593db feat(mempool): add comments and unit tests for mempool, and verify the signature in api module instead of mempool. 2020-10-13 12:37:13 +08:00
zhourong bd0b04e63e test(executor): add more executor unit test 2020-10-12 14:57:49 +08:00
zhourong 4c113637a6 refactor(*): optimize performance 2020-09-29 15:33:51 +08:00
Lizen d156957976 feat(mempool): add mempool feature 2020-09-27 16:09:38 +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
jiangzhe a89229fddd fix(proof_pool): fix verify ibtp pool panic 2020-09-18 11:19:46 +08:00
jiangzhe be3ef940fa refactor(*):refactor verify interchain tx 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
jiangzhe 4967ae38f4 feat(contract):verify union interchain transaction 2020-08-25 20:01:58 +08:00
jiangzhe 5c3c09e6b9 feat(contract):add handle ibtp from other relay chain in interchain contract 2020-08-24 14:41:13 +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
zhourong e4f5b05f67 feat(transaction):add method to get status 2020-07-30 23:29:17 +08:00
zhourong 41737ef232 feat(transaction): add asset exchange 2020-07-30 13:41:45 +08:00
dawn-to-dusk f87efbf898 fix(executor):fix the bug when registering rule with unexisted appchain 2020-07-29 14:43:58 +08:00
zhourong e7b8d8b17c feat(transaction): add transaction management 2020-07-17 19:26:21 +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
zhourong 9c784ad216 fix(executor): add normalTxs initialization 2020-07-09 16:26:13 +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 9f07926d1d test(executor): fix occasional test hang 2020-05-26 10:41:46 +08:00
jiangzhe 1e47675fd1 feat(monitor):add monitor point 2020-05-21 19:08:53 +08:00
jiangzhe bc681ea6fa feat(*):add query interchain 2020-05-12 19:39:08 +08:00
zhourong 8d71fd392f refactor(*): separate data persistence from block execution 2020-05-08 11:09:13 +08:00