OSDN Git Service

Reward util (#342)
authorwz <mars@bytom.io>
Tue, 23 Jul 2019 05:38:16 +0000 (13:38 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 23 Jul 2019 05:38:16 +0000 (13:38 +0800)
commit3df751629b0461637eef6d863f5f679c908c7eb4
treea4c50a0c1c1a134ac835b045f98ff97b2955bc05
parent4bc8c34936504eb903d2e8b5cf78473d41681b12
Reward util (#342)

* add vote reward

* add config

* fix

* modify

* modify sql

* fix review

* modify sql

* add roundVoteBlockNums

* recover code

* modify format

* modify code

* optimized code

* modify format

* fix review

* fix review

* fix review

* single xpub

* modifu

* fix review

* fix

* modify format

* fix review

* modify coinbase

* fix bug

* fix

* fix review

* add Rollback

* modify

* delete code

* add util

* modify sync

* add test

* modify db

* restore file

* fix review

* modify error

* add block hash

* try edit the code format

* add unit test

* modify table name

* fix review

* fix review
20 files changed:
toolbar/api_node/block.go [new file with mode: 0644]
toolbar/api_node/node.go [new file with mode: 0644]
toolbar/api_node/node_test.go [new file with mode: 0644]
toolbar/api_node/transaction.go [new file with mode: 0644]
toolbar/common/http_util.go [moved from toolbar/federation/util/http_util.go with 98% similarity]
toolbar/federation/service/node.go [moved from toolbar/common/service/node.go with 94% similarity]
toolbar/federation/synchron/mainchain_keeper.go
toolbar/federation/synchron/sidechain_keeper.go
toolbar/reward/config/config.go [deleted file]
toolbar/reward/database/dump_reward.sql [deleted file]
toolbar/reward/database/orm/block_state.go [deleted file]
toolbar/reward/database/orm/vote_utxo.go [deleted file]
toolbar/reward/reward.go [deleted file]
toolbar/reward/synchron/block_keeper.go [deleted file]
toolbar/reward/synchron/errors.go [deleted file]
toolbar/vote_reward/config/config.go [new file with mode: 0644]
toolbar/vote_reward/database/dump_reward.sql [new file with mode: 0644]
toolbar/vote_reward/database/orm/block_state.go [new file with mode: 0644]
toolbar/vote_reward/database/orm/utxo.go [new file with mode: 0644]
toolbar/vote_reward/synchron/block_keeper.go [new file with mode: 0644]