Commit Graph

149 Commits

Author SHA1 Message Date
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
jzhe 8a170a4a36 feat(ratelimit):add rate limit in grpc 2021-03-02 15:33:07 +08:00
jzhe 7cd9a03796 test:improve test coverage 2021-02-24 15:35:08 +08:00
Sandy Zhou f1000a1fe4
Merge pull request #323 from meshplus/feat/inter-relay
feat/inter relay
2021-02-24 14:09:20 +08:00
Sandy Zhou ca7505eb3b
Merge pull request #321 from meshplus/feat/persist-cached-nonce
feat(mempool): add nonce cache to persist storage
2021-02-24 11:09:30 +08:00
Alexader df6d5b99a3 fix(mempool): remove pending nonce persist 2021-02-24 11:02:16 +08:00
treasersimplifies bc9a93556b fix(*): fix method delete fail 2021-02-24 10:42:19 +08:00
treasersimplifies 5432a416ee test(*): fix ibtp tests 2021-02-24 10:34:16 +08:00
treasersimplifies 64faed9037 feat(*): add inter relay ibtp handler 2021-02-24 10:34:07 +08:00
Sandy Zhou efe9427752
Merge pull request #326 from meshplus/fix/fix-ha-two-node
fix: fix ha two node
2021-02-23 12:32:29 +08:00
Alexader 1ee6b7068e feat(*): remove error panic and storage in mem pool
1. add error when new mempool
2. remove storage instance usage from mempool into nonceCache
2021-02-23 00:55:04 +08:00
Alexader ddcddfad80 feat(mempool): add nonce cache to persist storage 2021-02-23 00:38:24 +08:00
jzhe 11cb56051e test:improve test coverage 2021-02-22 19:17:19 +08:00
jzhe b5cba02552 test:add repo and boltvm unit test 2021-02-22 15:16:03 +08:00
jzhe 38f979462c test(peermgr):add stop after swarm finish the test 2021-02-07 16:39:18 +08:00
Aiden X 187b317e85 test: add case 2021-02-07 16:37:52 +08:00
jzhe 253b4e57ea chore(ci):update node test 2021-02-07 15:40:40 +08:00
jzhe 190143c687
Merge pull request #332 from meshplus/unit-test
test(etcdraft): add unit test for etcdraft package
2021-02-05 10:50:23 +08:00
jzhe c7bf6388a1 test(syncer):modify syncer tests 2021-02-04 17:10:46 +08:00
Lizen0512 8f361682ce test(etcdraft): add unit test for etcdraft package 2021-02-04 15:32:19 +08:00
Aiden X 158b99afd0
Merge pull request #328 from meshplus/feat/stub-delete
feat(stub): add delete for blot stub
2021-02-03 09:55:56 +08:00
treasersimplifies 9c748e41af feat(stub): add delete for blot stub 2021-02-02 15:55:33 +08:00
liweixia de8ec92654 fix: fix ha two node 2021-01-27 14:33:17 +08:00
dawn-to-dusk 6baebe469c
Merge branch 'master' into feat/add-certificate-validation-configuration 2021-01-26 16:31:02 +08:00
jzhe 89eef0fced test:add proof test 2021-01-26 14:59:36 +08:00
dawn-to-dusk 09617a14d3 feat(*): add certificate validation configuration
1.Add certificate validation configuration in bitxhub.toml, so we can decide whether or not to enable certificate authentication based on the configuration file.
2021-01-25 19:43:32 +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
liweixia 0785bb6f06 test: add vm test 2021-01-21 18:14:57 +08:00
Alexader 1c98689f2d fix(mempool): old ttl key not released in txLiveTimeMap bug 2021-01-19 18:31:09 +08:00
Alexader 2aed7f6ecd refactor(mempool): refactor code according to comments 2021-01-18 20:17:04 +08:00
Alexader f328d1d6a1 fix(order): add rebroadcast timeout non-zero check 2021-01-18 10:26:06 +08:00
Alexader abd840d487 feat(order): add ttl index and local indicator for mempool tx
1. add ttl index to track txs need to be rebroadcast
2. add local indicator for each tx in mempool to judge if this tx is from api module
2021-01-18 10:26:06 +08:00
Alexader 6b52259ad3 feat(order): add timeout rebroadcast mechanism in mempool 2021-01-18 10:26:06 +08:00
Lizen0512 d377460c06 fix(mempool): fix skipped txs' ptr when generate block. 2021-01-12 14:40:48 +08:00
liweixia eea25c305b feat: add ha module 2021-01-07 15:36:20 +08:00
Aiden X 9f8949be00
Merge pull request #311 from meshplus/fix-ping
fix(swarm):fix the bug of oom caused by the continuous increase of go…
2021-01-05 15:08:48 +08:00
jzhe 521fadba05 fix(swarm):fix the bug of oom caused by the continuous increase of goroutine 2021-01-05 14:11:55 +08:00
jzhe 93d86402d7 feat:add raft state update 2021-01-04 14:18:57 +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
Lizen0512 2b46f477f8 fix(solo): fix solo panic bug when call peers releated interface 2020-12-28 15:49:21 +08:00
jzhe c01553f351 fix:fix swarm connect with less peers 2020-12-22 15:33:35 +08:00
Aiden X e5c43dae32
Merge pull request #295 from meshplus/solo-batch-timeout
refactor(*): 1: solo genetate a batch by timer; 2: refactor order.toml.
2020-12-22 00:17:34 +08:00
Aiden X 0aa38647a5
Merge pull request #293 from meshplus/state-update
feat:add state update
2020-12-22 00:07:34 +08:00
jzhe 52bc503b5e test:add syncer test 2020-12-21 22:31:17 +08:00
Lizen0512 c3ce3b582d refactor(*): 1: solo genetate a batch by timer; 2: refactor order.toml. 2020-12-21 19:42:20 +08:00
jzhe ba3963e8d0 feat:add state update 2020-12-21 16:25:23 +08:00
Lizen0512 6d7b842f42 refactor(mempool): refactor mempool for raft 2020-12-21 15:40:27 +08:00
Sandy Zhou 92666dd4a2
Merge pull request #290 from meshplus/fix/return-getmultisigns-error
fix(api/grpc): return the error for GetMultiSigns
2020-12-18 16:34:42 +08:00
Lizen0512 918605170b fix(test): refactor certs of unit tests 2020-12-18 14:45:47 +08:00
Lizen0512 e8521998ff refactor(*): refactor network config 2020-12-18 14:30:40 +08:00