• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Zusammenfassung des Repository

Golang implemented sidechain for Bytom


Neueste Commits RSS

Rev. Zeit Autor Nachricht
093d29e 2019-08-17 16:39:29 HAOYUatHZ precogs/init clean
2195f31 2019-08-17 16:26:40 HAOYUatHZ add comments
3907693 2019-08-17 16:25:12 HAOYUatHZ fix
6be9d64 2019-08-17 15:58:21 HAOYUatHZ folder
8246235 2019-08-17 15:49:28 HAOYUatHZ clean
23086a7 2019-08-17 15:41:26 HAOYUatHZ add
e3fc721 2019-08-16 18:35:33 HAOYUatHZ fix deadlock
2c15d28 2019-08-16 18:17:18 HAOYUatHZ fk
5edb7b2 2019-08-16 18:16:42 HAOYUatHZ fix
572016e 2019-08-16 17:51:02 HAOYUatHZ fix

Kürzlich bearbeitete Tags

Name Rev. Zeit Autor
v1.0.1 1ccb426 2019-08-05 20:46:40 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

Zweige

Name Rev. Zeit Autor Nachricht
precogs/init 093d29e 2019-08-17 16:39:29 HAOYUatHZ clean
master b12c7b5 2019-08-13 16:42:59 wz fix log (#388)
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
fix_paging 4cc569a 2019-07-02 16:17:31 mars fix paging
paging_utxo e2294ce 2019-07-01 16:52:48 wz Paging (#234) * add paging...
wallet-store-interface-walletstore ef9af46 2019-06-28 17:43:03 Chengcheng Zhang update SetStandardUTXO
paging 924a3bf 2019-06-28 17:27:51 mars Merge remote-tracking branc...
dev-fix 1eff3e9 2019-06-28 13:16:43 oys fix array out of index range
wallet-store-interface-marshal-test 78fd2d8 2019-06-28 02:55:43 Chengcheng Zhang update GetUTXOs
fix_lru e73e54d 2019-06-27 21:29:31 Paladz Merge branch 'master' into...
sql 653699f 2019-06-27 16:50:32 HAOYUatHZ clean up
wallet-store-interface-marshal 8110aa5 2019-06-27 13:47:47 Chengcheng Zhang update
test_mining_status f1e14d9 2019-06-27 12:25:01 paladz add more test data
test_vapore_status 11374c1 2019-06-27 11:53:38 paladz Merge branch 'master' into ...
test_porcess_block_bench 23e2515 2019-06-26 21:05:55 paladz add log
async_validate_tx 904d105 2019-06-26 20:54:15 paladz speed up valiate tx
req c68c98d 2019-06-26 19:50:32 HAOYUatHZ add address filter
list_address 52e7985 2019-06-26 18:39:16 HAOYUatHZ update docs
timestamp f05c242 2019-06-26 17:14:54 HAOYUatHZ add asset
feddoc d0bb5bd 2019-06-26 15:39:31 HAOYUatHZ refactor reponse
wallet-store-interface-account 25dc665 2019-06-26 00:19:06 Chengcheng Zhang finish account
dev-blockindex 87c0b30 2019-06-25 19:54:49 oys optimsie
wallet-store-interface-batch-dev 3c99f69 2019-06-25 03:44:53 Chengcheng Zhang update
wallet-store-interface-batch c3dc15d 2019-06-24 20:49:31 Chengcheng Zhang update
fix-dockerfile ee074fa 2019-06-24 15:34:48 Chengcheng Zhang fix dockerfile
api_vete_error 74691a4 2019-06-24 15:34:12 mars fix
vapor_bench 12ef516 2019-06-24 14:24:33 Wei Wang update script
wallet-interface-to-database 2441eb4 2019-06-24 03:09:01 Chengcheng Zhang move wallet_store.go
wallet-interface-account 612fd76 2019-06-23 21:40:03 Chengcheng Zhang add account_store.go

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,

bash $ 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

Show on old repository browser