• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Résumé du dépôt

Golang implemented sidechain for Bytom


Commits Récents RSS

Révision l'heure Auteur Message:
9f3042b 2020-01-22 16:05:54 Poseidon mov fix decimal (#479) * fix decimal * fix decimal * b...
4c90195 2020-01-22 15:31:09 shenao78 fix_decimal fix decimal
a985452 2020-01-20 21:27:13 Poseidon complement mov test (#477) Co-authored-by: Paladz <yzhu1...
808c4bc 2020-01-20 17:06:09 Poseidon fix_open_federation_issue_asset (#478) * fix_open_federa...
e0345b2 2020-01-20 16:39:25 shenao78 fix_open_federation_issue_asset fix_open_federation_issue_asset
6c9119c 2020-01-19 17:16:42 shenao78 complement_mov_test complement mov test
eccbe23 2020-01-09 17:26:38 EC2 Default User mov_test test config
7f77e74 2020-01-07 15:08:25 shenao78 mov_fast mov fast
557ab78 2020-01-07 10:54:29 shenao78 update_seeds remove config.json
f0bb080 2020-01-07 10:53:12 shenao78 update seeds

Tags récemment modifiées

Nom Révision l'heure Auteur
v1.0.5 0b8e544 2019-12-04 19:31:15 Poseidon
v1.0.4 4b5e427 2019-10-24 16:05:17 wz
1.0.3 3f53de9 2019-09-20 23:43:46 Paladz
v1.0.3 3f53de9 2019-09-20 23:43:46 Paladz
v1.0.2 27106c4 2019-09-19 19:48:12 Paladz
v1.0.1 bf344d1 2019-08-29 15:26:41 yahtoo
v1.0.0 3a6cd96 2019-07-20 11:58:14 apolloww
v0.3.0 353a871 2019-07-18 11:56:01 Zhiting Lin
v0.2.0 0af46f9 2019-06-28 15:21:12 Zhiting Lin
v0.1.0 f921741 2019-06-20 12:06:14 Paladz

Branches

Nom Révision l'heure Auteur Message:
mov 9f3042b 2020-01-22 16:05:54 Poseidon fix decimal (#479) * fix d...
fix_decimal 4c90195 2020-01-22 15:31:09 shenao78 fix decimal
fix_open_federation_issue_asset e0345b2 2020-01-20 16:39:25 shenao78 fix_open_federation_issue_a...
complement_mov_test 6c9119c 2020-01-19 17:16:42 shenao78 complement mov test
mov_test eccbe23 2020-01-09 17:26:38 EC2 Default User test config
mov_fast 7f77e74 2020-01-07 15:08:25 shenao78 mov fast
update_seeds 557ab78 2020-01-07 10:54:29 shenao78 remove config.json
fix_mov_bug e029003 2020-01-03 15:23:49 ipqhjjybj s
tele_test dfeb5b4 2020-01-03 11:32:54 Jay Add
fix_long_fork aa9235f 2019-12-26 17:29:16 shenao78 fix
master 3adffe8 2019-12-26 15:02:49 ipqhjjybj Fix bug (#472) * fix bug f...
opt_mov_validate_match_tx 760aee0 2019-12-24 21:28:45 shenao78 Merge branch 'opt_mov_valid...
fix_lru_bug bf455f1 2019-12-24 20:43:20 shenao78 remove blanck line
tele_test_dashboard 9fea129 2019-12-24 17:00:04 Zhiting Lin update dashboard with cross...
tele f9c0691 2019-12-18 20:24:33 oys opt
telecom 6bbeaa2 2019-12-18 11:44:58 Jay no message
action 71561f5 2019-12-09 11:10:14 Chengcheng Zhang update
update-mov fbaf5e3 2019-12-06 20:05:38 Chengcheng Zhang update
fix_mov_issue 5f0b01c 2019-12-06 16:57:34 shenao78 fix ci
cache beec6e4 2019-12-06 16:12:21 Chengcheng Zhang update
fix_infinite_loop ec65681 2019-12-04 18:04:04 shenao78 validate equals trade pair
issuance_length 303760a 2019-12-02 15:56:48 HAOYUatHZ increase length
fix_recursive_bug 5202c34 2019-11-29 21:40:20 paladz edit logic
mov_check_critic 13c03c4 2019-11-29 00:16:20 HAOYUatHZ init too;
fix_core_sync 0d2d815 2019-11-27 20:05:31 Paladz Merge branch 'mov' into fi...
regular_sync_bug d36e2a6 2019-11-27 18:44:53 paladz try fix
force_block c480f7a 2019-11-27 17:17:37 shenao78 force block
sign_block 27eafbf 2019-11-27 17:01:22 Paladz Merge branch 'mov' into si...
dust_tx 4f9a992 2019-11-27 16:28:52 Paladz Merge branch 'mov' into du...
fix_mov_should_pay_amount af122f0 2019-11-27 16:19:42 shenao78 fix conflict
add_mul_fraction_op 524968c 2019-11-27 10:57:43 HAOYUatHZ minor
update_testnet_config fdcc616 2019-11-25 13:27:22 shenao78 rollback federation config
edit_time_limit f058ca0 2019-11-25 12:31:21 Paladz Merge branch 'mov' into ed...
fix_crossin_api 1948ee5 2019-11-25 11:47:00 wz fix
fix_request_amount_zero 655389a 2019-11-25 11:33:06 shenao78 fix request amount zero
add_protocol_verify_tx f2fd7c3 2019-11-25 11:03:47 paladz submit tx protocol verify
faucet 0af6aef 2019-11-23 18:33:54 Chengcheng Zhang update
fix_lock 2658d9b 2019-11-22 19:59:51 paladz fix the roll back dead lock
p2p dac68ea 2019-11-22 13:29:03 DeKaiju fix(log): change p2p connec...
proposal_timeout d01a166 2019-11-21 16:56:46 paladz set proposal have timeout
fix_sync_status 99cb9c5 2019-11-13 12:20:33 Paladz Merge branch 'mov' into fi...
modify_corssout_tx_action 1bdbd1f 2019-11-12 12:17:58 wz add program for corssout ac...
demonstration 00b377a 2019-11-12 12:11:44 wz add program for corssout ac...
check_logic c673035 2019-11-06 01:59:00 paladz same change while go over t...
check_mov_store 7702f5f 2019-11-05 17:50:39 Paladz Merge branch 'mov' into ch...
fix_match 28941b0 2019-11-05 15:19:01 shenao78 opt code
mov_core_test 24ac294 2019-11-04 18:07:33 shenao78 add calcMatchedTxFee test
fix_order_table e69bba3 2019-11-01 17:57:23 shenao78 fix order table
merge_order_from_pool a301cbd 2019-11-01 11:19:57 shenao78 rename
mov_merge 35ad7f3 2019-10-31 18:28:03 shenao78 block height limit for befo...
mov_status_fail db1f09a 2019-10-29 18:56:33 shenao78 add status fail check
mov_joint 8eaac84 2019-10-28 13:48:38 shenao78 format code
fix_mov_database d0b9962 2019-10-28 11:25:16 shenao78 fix mov database
fix_mov_store 9d13f32 2019-10-28 11:16:51 shenao78 Merge branch 'mov' into fix...
mov_core 7fcd3aa 2019-10-24 23:34:32 Paladz Merge branch 'mov' into mo...
add_release_notes 2897135 2019-10-24 15:20:09 wz fix
mov_crossin_tx 3fa2288 2019-10-24 14:09:26 wz fix
up 57c3adb 2019-10-24 12:05:04 Paladz Merge branch 'master' into up
modify_federation_sync 9caa2ff 2019-10-23 22:17:46 wz Merge branch 'mov' into mo...
match_engine 4c66eb4 2019-10-23 16:33:31 shenao78 refactor
version f6497de 2019-10-23 15:07:14 Yahtoo Ma change version v1.0.4
fix_log_level 808d162 2019-10-22 16:46:09 iczc fix log level
selector 8645d97 2019-10-22 16:30:10 Paladz Merge branch 'mov' into se...
mov_database_iterator b8812d3 2019-10-22 12:32:36 shenao78 mov_database_iterator
subprotocol d13589b 2019-10-22 12:26:47 Yahtoo Ma MOV add startpoint
dex_core e4c2691 2019-10-21 22:05:43 shenao78 modify comment
fitx_mov_database_bug ca08474 2019-10-16 11:26:12 wz fix
dev-magnetic a9fc8a9 2019-10-15 11:07:06 oys modify parameter name
chainTxMergeGas 19c9d93 2019-10-14 19:45:10 Yahtoo Ma Revert test file modify
dev-dexprogram eb29189 2019-10-12 17:24:32 oys optimise
combination d7f58f5 2019-09-27 17:55:47 shenao78 fix import
dex_database_logic_implementation 892ea3f 2019-09-26 17:32:24 wz Add logic implementation
dex_databse_struct 8ccbfd6 2019-09-24 15:31:32 wz database struct
fix_bug cffd1cd 2019-09-19 19:22:28 oys modify soft point height
dss 02140ed 2019-09-12 13:26:44 HAOYUatHZ add
fix_mainchain_keeper 580819d 2019-09-09 16:02:57 shenao78 remove config
utxo_test d50ff0b 2019-09-04 12:19:35 wyjDoraemon utxo_view
precogs/init 710a2db 2019-09-03 16:22:56 HAOYUatHZ rollback
toolbar 2db2c17 2019-09-03 11:27:40 wyjDoraemon fix createAccount alias
fix_no_table e35d58a 2019-08-30 11:17:58 wz fix
server 4feb1d8 2019-08-28 16:33:13 HAOYUatHZ rename
feature_listchain_api 7860cae 2019-08-21 17:58:48 Paladz Merge branch 'master' into...
test_protocol b12c7b5 2019-08-13 16:42:59 wz fix log (#388)
fix_log_err eb1ea85 2019-08-13 16:35:27 wz fix log
fix_log 8f34976 2019-08-13 16:21:48 wyjDoraemon writer close
merger_utxo 58a564d 2019-08-12 15:13:52 wz add merger utxo
add_vote_reward_memo 7208874 2019-08-12 14:57:32 paladz fix small issue
protocol_test be99aff 2019-08-12 13:48:11 Yahtoo Ma Add protocol status test case
modify_readme_for_votereward 3bec469 2019-08-08 15:18:09 wz modify readme
block_fetcher 8251b6d 2019-08-05 18:05:16 Yahtoo Ma Peer add announces new bloc...
dockerfile f9902b1 2019-08-02 15:56:31 HAOYUatHZ mv dockerfiles
add_log_for_votereward c95e802 2019-08-01 15:47:13 wz add log
vote_reward_readme d7190f1 2019-07-31 16:53:53 mars modify readme for voterewatd
netsync-test be23060 2019-07-29 20:28:42 Yahtoo Ma netsync add test case
revert-357-master d037ce0 2019-07-29 11:32:01 Paladz Revert "log into file (#357...
fixconsensusreward 46c4de9 2019-07-26 17:51:48 iczc delete unused
feature_rewardstatistics 8ad88a0 2019-07-26 17:22:43 iczc Change interval
alternative_nodes 6bdec32 2019-07-25 18:20:41 mars fix review
feature_consensusreward b37eb87 2019-07-25 15:48:06 iczc Merge branch 'feature_conse...
bbft_test 7216c1e 2019-07-24 21:52:18 shenao78 opt code

README.md

Vapor

Build Status AGPL v3

Golang implemented sidechain for Bytom.

Requirements

  • Go version 1.11 or higher, with $GOPATH set to your preferred directory

Get source code

$ cd $GOPATH/src/github.com/bytom
$ git clone https://github.com/Bytom/vapor.git

Then, you have two ways to get vapor executable file:

  1. compile source code
  2. build it using Docker

Installation

$ cd $GOPATH/src/github.com/bytom/vapor
$ make install

Run Directly

Firstly, you need initialize node:

$ vapord init --chain_id=mainnet --home <vapor-data-path>

The default vapor data path (on the host) is: + Mac: ~/Library/Application Support/Vapor + Linux: ~/.vapor + Windows: %APPDATA%\Vapor

Then, start your node:

$ vapord node --home <vapor-data-path>

Running in Docker

Build the image

$ cd $GOPATH/src/github.com/bytom/vapor
$ docker build -t vapor .

Enter the iterative mode

$ docker run -it --net=host -v <vapor/data/directory/on/host/machine>:/root/.vapor vapor:latest

vapor data directory has three config files:

  • config.toml
  • federation.json
  • node_key.txt

Use exit to exit Docker's iterative mode.

Daemon mode

For example,

$ docker run -d --net=host -v <vapor/data/directory/on/host/machine>:/root/.vapor vapor:latest vapord node --web.closed --auth.disable

To list the running containners and check their container id, image, corresponding command, created time, status, name and ports being used:

$ docker container ls

or

$ docker ps

To execute a command inside a containner, for example:

$ docker exec -it <containerId> vaporcli create-access-token <tokenId>

To stop a running containner:

$ docker stop <containerId>

To remove a containner:

$ docker rm <containerId>

Reward distribution tool

After the supernode and alternative node receive the reward from the node, they will allocate the reward

according to the interest rate.

The reward calculation rules:

calculate the reward (consensus reward * interest rate * voting weight) according to the weight of votes

cast in consensus around, and choose how many rounds of consensus to allocate the reward flexibly.

Tool usage details

Merger utxo

UTXO has been merged to solve the problem that too much UTXO input causes a failed send transaction to fail. details

License

AGPL v3

Afficher sur ancien navigateur de dépôt.