Commit graph

9641 commits

Author SHA1 Message Date
Nguyen Sy Thanh Son
b75916339b add smart contract randomize blocksigner 2018-07-17 09:16:01 +00:00
Nguyen Sy Thanh Son
a7bd5d29de move blocknumber to blockhash 2018-07-17 08:41:16 +00:00
Nguyen Sy Thanh Son
5de2a2da3f Merge branch 'master' of github.com:tomochain/tomochain 2018-07-17 08:03:25 +00:00
Nguyen Sy Thanh Son
dc5576319b update randomize - onlyone opening message 2018-07-17 08:00:43 +00:00
Nguyen Sy Thanh Son
4cc12d3ed6 update new Tomo Validator 2018-07-16 08:03:44 +00:00
Nguyen Sy Thanh Son
cbb706e435 update new blocksigner smartcontract 2018-07-16 07:21:39 +00:00
Nguyen Sy Thanh Son
66b1e8ad50 fix unit test, safe cancel context 2018-07-16 06:44:51 +00:00
Tuna
eac412a106
Merge pull request #82 from ngtuna/minor-bugfix
bugfix: unexpected pre node
2018-07-12 17:59:18 +07:00
Nguyen Sy Thanh Son
dd353d6bb5 add option genesis generator for POSV 2018-07-12 10:06:00 +00:00
Tuna
d1138b9b10 bugfix: unexpected pre node 2018-07-12 17:00:06 +07:00
Nguyen Sy Thanh Son
aa06d56b98 log contract code for debug and genensis generator 2018-07-12 08:15:29 +00:00
Tuna
d4b7305060
Merge pull request #74 from benjyz/word-staking
staking not mining
2018-07-10 10:14:22 +07:00
Tuna
02a1bd2b53
Merge pull request #68 from dinhln89/reward
Reward to candidate's owner and coin holders
2018-07-09 16:57:59 +07:00
dinhln89
e7b74b0d9d Fixed calculate reward for holders.
Refine code for rename TomoValidator and add error log get snapshot for more detail.

Fixed error for test coverage.
2018-07-09 15:11:09 +07:00
dinhln89
09b7e1355f Add unit test for calculate reward for holders. 2018-07-06 11:09:03 +07:00
dinhln89
d7ea36bfc3 Add reward calculate rates for masternode, voters and foudation wallet address. 2018-07-06 11:09:03 +07:00
dinhln89
3248badf0c Change IValidator to Tomo Validator name. 2018-07-06 11:08:52 +07:00
dinhln89
cb993ece47 Fixed add reward balance for candidate owner not coinbase address. 2018-07-06 11:07:04 +07:00
Tuna
fb46af9f02
Merge pull request #75 from ngtuna/block-one
masternode[0] will create block 1
2018-07-06 10:23:59 +07:00
benjyz
2bd14237ee fix flags 2018-07-05 12:48:16 +02:00
Tuna
3a139d6c78 masternode[0] will create block 1 2018-07-05 17:12:22 +07:00
benjyz
f394faf509 staking not mining 2018-07-05 11:44:40 +02:00
Tuna
95a09286e0
Merge pull request #72 from ngtuna/tiny-logging-improvement
get rid of annoying msg if the node is still importing blocks only
2018-07-04 08:14:38 +07:00
Tuna
c5fba13c43 get rid of annoying msg if the node is still importing blocks only 2018-07-03 17:40:06 +07:00
Tuna
d6c6163b8d
Merge pull request #50 from ngtuna/voting-smc
Get masternodes candidates from smart contract
2018-07-03 16:51:52 +07:00
Tuna
a72d7782ae in case a masternode resigns, let him continue until end of the current epoch 2018-07-03 16:15:56 +07:00
Tuna
b098681495
Merge pull request #69 from gitter-badger/gitter-badge-4
Add a Gitter chat badge to README.md
2018-07-03 09:39:20 +07:00
Nguyen Sy Thanh Son
e5e6ce72d3
Merge branch 'master' into gitter-badge-4 2018-07-03 09:14:03 +07:00
The Gitter Badger
76137b070a Add Gitter badge 2018-06-30 06:53:43 +00:00
Tuna
e37b644f29 temporarily bypass 0x00 returned from smc 2018-06-29 17:14:55 +07:00
Tuna
33f47f1b61
Merge pull request #67 from thanhson1085/master
add randomize contract
2018-06-29 17:08:36 +07:00
Tuna
54a0bad209 get masternodes set from latest checkpoint block header instead of from snapshot 2018-06-29 15:50:03 +07:00
Nguyen Sy Thanh Son
c08cc09b1c add randomize contract 2018-06-29 08:41:33 +00:00
Tuna
6502fe9642 skip changes if no candidates found 2018-06-29 14:32:56 +07:00
Tuna
b62cdd9a03 tiny lint thing 2018-06-29 14:32:56 +07:00
Tuna
da26c4884b minor log cleaning up 2018-06-29 14:32:56 +07:00
Tuna
ab9f40aeed update new set of masternodes at end of each epoch (distance = m1Gap) 2018-06-29 14:31:33 +07:00
Tuna
77966cccc1
Merge pull request #65 from etienne-napoleone/travis-timeout
Update .travis.yml
2018-06-28 18:03:52 +07:00
Tuna
c4147006cc
Merge pull request #62 from dinhln89/reward
Add unit test for calculate reward for signers at reward checkpoint.
2018-06-28 17:59:47 +07:00
dinhln89
3097babcaf Fixed add ipc client global variable inject into ethereum instance. 2018-06-28 15:35:58 +07:00
Tuna
fbbdb05b51
Merge pull request #64 from thanhson1085/master
update smart contract, hard-code first 3-masternodes
2018-06-28 00:42:16 +07:00
etienne-napoleone
49a69c52e1 Change to second methode 2018-06-27 19:08:17 +07:00
etienne-napoleone
6c814dca04 Update .travis.yml
Change stage order and fix timeout on coverage test
2018-06-27 18:18:52 +07:00
Nguyen Sy Thanh Son
af5ad415ec update smart contract, hard-code first 3-masternodes 2018-06-27 10:15:56 +00:00
dinhln89
68697e970b Fixed bug calculate reward and add unit test for it. 2018-06-27 16:52:53 +07:00
dinhln89
ed8de4f2b4 Add unit test for calculate reward for signers at reward checkpoint. 2018-06-27 16:52:53 +07:00
Tuna
b356924fe5
Merge pull request #59 from dinhln89/ipc-hotfix
Fixed bug too many open IPC connect at same time.
2018-06-27 11:57:18 +07:00
dinhln89
0f75eb97b6 Fixed bug too many open IPC connect at same time. 2018-06-26 17:56:44 +07:00
Tuna
9c0e456387
Merge pull request #57 from thanhson1085/master
update smart contract
2018-06-26 14:59:17 +07:00
Nguyen Sy Thanh Son
4de75a13e9 update smart contract 2018-06-26 07:54:01 +00:00