Commit Graph

147 Commits

Author SHA1 Message Date
zhourong 3a48326d24 refactor(*): move interchain counter from block header to interchain meta 2020-06-08 15:21:39 +08:00
treasersimplifies 57df04f137 fix(solo): disable p2p when start bitxhub in solo mode 2020-06-08 14:32:34 +08:00
Aiden X 60e3ea3909
Merge pull request #86 from jsrzx/master
修正错误的make目标
2020-05-29 09:16:21 +08:00
jasonruan 9813d859e3 修正错误的make目标 2020-05-28 12:27:07 +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
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
jiangzhe 4fc2202c7d feat(*):add prometheus monitor 2020-05-15 19:39:01 +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
jiangzhe b139e29a17 refactor(contracts): remove appchain manager
1. remove appchain contract to bitxhub-core project.
2. extract IBTP contract from appchain.
2020-05-07 14:54:01 +08:00
Aiden X 94b7d5a8d3 refactor(tester): rm gosdk and use core api 2020-04-29 19:10:25 +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
levi9311 3609a9fc1c feat: add get public key
Add get public key in interchain.
2020-04-29 15:57:55 +08:00
zhourong ecb30f79da fix(*): fix concurrent map writes 2020-04-29 15:03:31 +08:00
Aiden X 33055dfafc
Merge pull request #62 from meshplus/feat/register-with-pubkey
feat: add register pubkey
2020-04-28 19:26:44 +08:00
Alexader 574f90cc3a feat(api): add default tx wrapper for return
1. add default tx wrapper for return when a block contains no interchan tx
2. close channel when GetInterchainWrapper and GetBlockHeader finish
2020-04-28 19:09:43 +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
xialiwei 5796919e82 feat: add register pubkey
Now appchain registration need upload public key.
2020-04-28 15:02:55 +08:00
zhourong 06869782ce refactor(*): deal with DB error in storage 2020-04-28 11:11:34 +08:00
Aiden X d0511641cd
Merge pull request #58 from meshplus/refactor/extract-order-module
refactor(order):extract order module to pkg module
2020-04-27 18:52:46 +08:00
Aiden X 500f802c7c
Merge pull request #59 from meshplus/ledger
refactor(ledger): rollback ledger to a certain block according to the…
2020-04-27 18:52:27 +08:00
jiangzhe 813a7322db refactor(order):extract order module to pkg module 2020-04-27 17:27:43 +08:00
zhourong e2b5302f22 refactor(ledger): rollback ledger to a certain block according to the journals 2020-04-27 17:18:22 +08:00
Aiden X d0f58fce83
Merge pull request #57 from meshplus/ledger
fix(ledger): get prevJournalHash when new ledger
2020-04-27 14:07:14 +08:00
zhourong 67b059aa45 fix(ledger): get prevJournalHash when new ledger 2020-04-27 14:00:46 +08:00
Alexader 3ae115af8f feat(*): split merkleWrapper into header and txWrapper
change grpc api SyncMerkleWrapper into GetInterchainTxWrapper and
GetBlockHeader
2020-04-27 11:23:36 +08:00
zhourong 86f946d2d4 refactor(ledger): use KV instead of tree 2020-04-26 20:49:28 +08:00
jiangzhe 2c561b9864 fix(grpc): fix getblocks func 2020-04-22 16:55:59 +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
Chen Quan 89cf230dae
fix(internal/repo/config.go): fix typo 2020-04-20 20:51:30 +08:00
jiangzhe e2c1bc8db1 fix(node):fix the failure of node test 2020-04-17 17:16:17 +08:00
Alexader ae54604bf9 feat(executor): handling invalid destination chain id
When the destination chain id of ibtp is not exist in bitxhub, its content should still be processed.
close #22
2020-04-17 10:29:45 +08:00
Alexader ec0bd485d6 refactor(executor): refactor illegal tx handling
when the destination chain id is illegal, bitxhub should ignore it instead of returning error. The appchain which invoked this tx will wait for this tx to timeout.
2020-04-16 20:38:08 +08:00
Aiden X 9ebc083a89
Merge pull request #21 from meshplus/feat/new-validation-engine
Refactor validation engine
2020-04-16 20:34:11 +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
levi9311 3e602dcd07 feat: add auto determine fabric internal rule
Now internal rule manager will automatically use fabric internal rule address when it can not find wasm address
2020-04-16 11:26:56 +08:00
Aiden X 6331259efc test(*): add integration test 2020-04-16 00:43:16 +08:00
jiangzhe 96ba5e0d90 fix(raft): fix raft consensus error
1. add the maximum transaction size to the tx pool.
2. leader election results in repeated ack transactions.
2020-04-09 20:19:27 +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 f3f5ef0c8d feat(executor): adding access control for interchain contract 2020-04-08 18:34:20 +08:00
Aiden X b4b07b3f25 docs(README.md): add wechat 2020-03-30 19:14:45 +08:00
Aiden X 91fccf8380 script(*): add config.sh 2020-03-30 16:34:30 +08:00
Aiden X d5b4071447 feat(*): init project 2020-03-30 00:11:21 +08:00