Commit Graph

149 Commits

Author SHA1 Message Date
jzhe bd2705acc7
Merge pull request #190 from meshplus/test/add-executor-test
test(executor): add more executor unit test
2020-10-13 10:34:55 +08:00
Aiden X 947a57cc30 test: add storage unit test 2020-10-12 20:31:05 +08:00
zhourong bd0b04e63e test(executor): add more executor unit test 2020-10-12 14:57:49 +08:00
zhourong 3b844ee7c7 fix(*): use category instead of type 2020-10-09 19:33:58 +08:00
Alexader ff7e0b0206
Merge pull request #179 from meshplus/feat/add-ledger-test
test(ledger): add more ledger test
2020-09-30 11:21:42 +08:00
Lizen 5a53cf1435 fix(mempool): fix two mempool bugs:
1. If some transactions are missing when calling the func constructSameBatch by a
   follower to construct the same block, avoid persistent this block;
2. Increase the chain height of follower after finishing getting the block from mempool;
2020-09-30 10:15:41 +08:00
zhourong 4c113637a6 refactor(*): optimize performance 2020-09-29 15:33:51 +08:00
jiangzhe 5ead8bad8a test(*):add network and consensus unit test 2020-09-29 15:20:13 +08:00
Lizen 24f56f3d78 add comments for mempool interface 2020-09-27 18:07:16 +08:00
Lizen b65c466294 delete GetPendingNonceByAccount implement in info.go file 2020-09-27 17:20:05 +08:00
Lizen d6c101e0a6 fix nil txPointer when delete transaction from mempool 2020-09-27 17:00:47 +08:00
Alexader 940f6857d0 fix(order): fix errors in node_test
1. logger in mempool and txCache passed by Order module instead of loggers
2. fix goroutine not return after receiving signal from close channel in mempool error
3. fix idSlice is not initialized with 0 length in GenerateRaftPeers function
2020-09-27 16:11:50 +08:00
Lizen 76e3690bf0 fix GetPendingNonceByAccount api which may be concurrent reading/writing 2020-09-27 16:10:16 +08:00
Alexader f43bb1c09a feat(order): add GetPendingNonceByAccount api
1. add GetPendingNonceByAccount api
2. revise getAccount method for ibtp receipt
2020-09-27 16:10:16 +08:00
Lizen 9cdd54e5da format the mempool files 2020-09-27 16:09:38 +08:00
Lizen d156957976 feat(mempool): add mempool feature 2020-09-27 16:09:38 +08:00
zhourong b0466cd993 refactor(*): add more log to proof verification 2020-09-24 16:35:33 +08:00
Alexader bda3e60bb7
Merge pull request #169 from meshplus/feat/add-tps-statistics
feat(*): add api to get TPS
2020-09-22 20:20:23 +08:00
zhourong 112931d37c feat(*): add api to get TPS 2020-09-22 20:05:56 +08:00
jiangzhe 64a2b3fc46 fix(raft):fix raft peers unorder error in config 2020-09-21 19:56:04 +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
liweixia 1269332cb1 fix: fix wasm unitest 2020-09-18 10:47:40 +08:00
Aiden X c66691ea31 feat(api): add block header signs func 2020-08-26 16:22:10 +08:00
jiangzhe 5c3c09e6b9 feat(contract):add handle ibtp from other relay chain in interchain contract 2020-08-24 14:41:13 +08:00
jiangzhe a62173cc9a refactor(*):refactor p2p module 2020-08-24 14:21:01 +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
jzhe 1a46725b54
Merge pull request #118 from meshplus/fix/fix-pack-when-the-number-of-block-txs-is-full
fix(order):fix pack when the number of block txs is full
2020-07-17 19:16:20 +08:00
jiangzhe f30991d941 fix(order):fix pack when the number of block txs is full 2020-07-17 14:12:20 +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 948f27521f fix(*): fix concurrent map write in swarm.go 2020-05-08 16:08:21 +08:00
zhourong ecb30f79da fix(*): fix concurrent map writes 2020-04-29 15:03:31 +08:00
zhourong 06869782ce refactor(*): deal with DB error in storage 2020-04-28 11:11:34 +08:00
jiangzhe 813a7322db refactor(order):extract order module to pkg module 2020-04-27 17:27:43 +08:00
Aiden X 4739043936 refactor(network): use bitxhub-kit network module 2020-04-22 16:02:56 +08:00
Aiden X 3e40509dbe
Merge pull request #43 from meshplus/refactor/network-interface
refactor(network): add message handler
2020-04-22 15:49:36 +08:00
Aiden X 825bfaea12 refactor(network): add message handler 2020-04-22 15:30:13 +08:00
levi9311 7c896563b1 feat: remove wasm core
remove wasm core function
2020-04-21 21:01:53 +08:00
Aiden X 759f61eac3 refactor(network): rm idStore and modify interface 2020-04-21 17:11:54 +08:00
levi9311 d1af9adfef feat: adjust validation and wasm module
move wasm lib to validation module
wasm instance now need imports to create
2020-04-16 20:10:24 +08:00
jiangzhe fc6a894231 fix(bloom_filter): fix bloom filter caused panic 2020-04-09 20:02:53 +08:00
xialiwei c886be3907 feat(validator): add go internal fabric rule
1. add validation engine
2. now validatior will init in validation engine, validator type will choosed by the address
2020-04-09 11:00:48 +08:00
Aiden X 6a9cce1b76 chore(*): modify README.md 2020-03-30 01:40:47 +08:00
Aiden X d5b4071447 feat(*): init project 2020-03-30 00:11:21 +08:00