• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: レポジトリ概要

Golang implemented sidechain for Bytom


最近のコミット RSS

Rev. 日時 作者 メッセージ
1ab7984 2019-10-23 18:41:32 Chengcheng Zhang up update
995d9aa 2019-10-23 18:31:05 Poseidon mov match engine (#418) * match engine * opt code * up...
4c66eb4 2019-10-23 16:33:31 shenao78 match_engine refactor
55fd6b9 2019-10-23 16:06:13 shenao78 opt canNotMatched func
42fa928 2019-10-23 15:35:09 shenao78 remove magic num
20c5df2 2019-10-23 15:30:50 wz modify_federation_sync Merge branch 'master' into modify_federation_sync
c3d0b20 2019-10-23 15:29:18 shenao78 fix validate trade pairs
f81130d 2019-10-23 15:14:44 wz mov_crossin_tx fix
a618c30 2019-10-23 15:13:37 yahtoo master change version v1.0.4 (#420)
4826d39 2019-10-23 15:12:02 shenao78 opt code

最近変更されたタグ

名前 Rev. 日時 作者
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

ブランチ

名前 Rev. 日時 作者 メッセージ
up 1ab7984 2019-10-23 18:41:32 Chengcheng Zhang update
mov 995d9aa 2019-10-23 18:31:05 Poseidon match engine (#418) * matc...
match_engine 4c66eb4 2019-10-23 16:33:31 shenao78 refactor
modify_federation_sync 20c5df2 2019-10-23 15:30:50 wz Merge branch 'master' into...
mov_crossin_tx f81130d 2019-10-23 15:14:44 wz fix
master a618c30 2019-10-23 15:13:37 yahtoo change version v1.0.4 (#420)
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
dev-test 82a133a 2019-07-24 15:07:22 oys Merge branch 'master' into ...
reward_util 3aec498 2019-07-23 12:25:46 mars fix review
fix_sweep_txpool df28dbb 2019-07-20 11:32:13 Wei Wang txpool: periodically sweep ...
Dockerfile 43a6104 2019-07-20 11:30:28 Yahtoo Ma Modify Dockerfile expose po...
edit_dump db2a15f 2019-07-19 23:20:35 paladz delete the key index
dump da60fba 2019-07-19 21:01:03 HAOYUatHZ update db dump (#332)
wallet-store-test ff61324 2019-07-19 18:06:43 Chengcheng Zhang Merge branch 'master' into ...
mainnet_seeds 2cb65e9 2019-07-19 17:30:13 HAOYUatHZ add mainnet seeds
consensus b57db94 2019-07-19 17:02:19 HAOYUatHZ vapor v1.0 genesis consensus
clean c567be0 2019-07-19 03:02:19 Paladz Merge branch 'master' into...
federation-address b91e392 2019-07-18 18:06:58 Chengcheng Zhang update GetNodeInfo
deadlock 38428c0 2019-07-18 15:56:44 Yahtoo Ma Opz name of the variable
netParams 9ab6328 2019-07-17 21:17:17 HAOYUatHZ update doc
update eaf5d99 2019-07-17 17:58:24 HAOYUatHZ fix config & update mysql d...
account-store-test 821efc3 2019-07-17 16:14:31 Chengcheng Zhang fix conflict
dev-free 5764f1c 2019-07-17 11:24:10 oys optimise
ten_times_federation_vote cbf22dd 2019-07-17 10:28:25 shenao78 ten times federation vote
fix_fed_connect_issue 47f5cf7 2019-07-17 00:50:48 paladz fix bug
node_path 0b60020 2019-07-15 23:16:13 HAOYUatHZ refactor: use derived xpubs...
fed_path 33f41e2 2019-07-15 22:03:37 HAOYUatHZ add fed path
test-save-block e2faecd 2019-07-15 20:25:32 Chengcheng Zhang update
rename_dir 427c35b 2019-07-15 15:18:20 mars rename dir
voter_reward 3ed12f9 2019-07-15 14:55:58 mars rename dir
netsync 59d2863 2019-07-15 13:15:53 Yahtoo Ma Fix test file err
filter_t 2499362 2019-07-15 12:15:34 Paladz Merge branch 'master' into...
modify-init 767b83d 2019-07-13 11:37:35 Chengcheng Zhang update init
asset_symbol dad98e7 2019-07-12 20:56:18 HAOYUatHZ fix import
fix-bug f13b0c0 2019-07-12 20:47:53 paladz try to fix ban peer bug
add-xpub c48080a 2019-07-12 18:36:43 Chengcheng Zhang update
signature_msg 16276da 2019-07-12 15:54:27 Paladz Merge branch 'master' into...
dashboard 8c09b5e 2019-07-12 15:03:12 Zhiting Lin update dashboard
dev-genernl 59604bb 2019-07-12 11:20:25 oys optimise
fix-get-utxo 73f40d5 2019-07-11 17:26:30 Chengcheng Zhang update log
fix_bug_list_transactions 2ab002a 2019-07-11 17:20:52 mars fix bug
dev-modify 3c8eaad 2019-07-11 12:19:45 oys optimise
wallet-store-interface 3fa10c8 2019-07-11 11:43:17 Chengcheng Zhang update getExternalDefinition
parallel-fast-sync 84b4214 2019-07-11 10:04:52 Yahtoo Ma Fix review bug
blacklist 91fc4aa 2019-07-10 20:36:11 Yahtoo Ma fix ban node failed
master-filterAccountTxs 0310308 2019-07-10 15:27:21 Chengcheng Zhang update
wallet-store-interface-TestRescanWallet c71db6d 2019-07-09 22:15:47 Chengcheng Zhang remove loop
fix_tx_rollback df33e58 2019-07-09 12:29:00 Wei Wang restore Tx back to Tx pool ...
fix_change d041427 2019-07-08 15:20:58 HAOYUatHZ filter change output
wallet-store-interface-TestRescanWallet-prefix 027b55d 2019-07-08 13:46:40 Chengcheng Zhang move db wallet store prefix
dev-coinbase 1611874 2019-07-06 16:16:59 Paladz Merge branch 'master' into...
fix_LIB 2b9475d 2019-07-05 19:02:10 Wei Wang keep last irreversible bloc...
fix_outputID aea2a15 2019-07-05 11:48:33 HAOYUatHZ refine code
wallet-store-interface-mockstore 3ada9e6 2019-07-05 05:17:37 Chengcheng Zhang update TestMemPoolTxQueryLoop
wallet-store-interface-unmarshal db398f2 2019-07-04 22:10:54 Chengcheng Zhang fix conflicts
blockheight d3c2fdb 2019-07-04 16:14:39 HAOYUatHZ Merge remote-tracking branc...
small_edit 2282cf7 2019-07-04 12:22:11 paladz delete unused file
compression 3b96051 2019-07-03 16:50:51 mars add compression
distribution_rewards 94ffe40 2019-07-02 20:53:58 wz Tx validate mining (#237) ...
tx_validate_mining 73c5c97 2019-07-02 20:17:12 mars tx validate for minging
fed_prog 106fc48 2019-07-02 16:34:13 HAOYUatHZ filter source block height

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

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

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/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/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

旧リポジトリブラウザで表示