Commit graph

1022 commits

Author SHA1 Message Date
Nguyen Ba Tam
556dd4275b tiny fix hook penalty 2018-10-17 10:47:22 +07:00
Nguyen Ba Tam
ad4b0f223c verify penalty info in header check point 2018-10-12 14:08:15 +07:00
Nguyen Ba Tam
2bf1906342 fix error when find penalties in 4 epoch ago 2018-10-12 11:06:58 +07:00
Nguyen Ba Tam
63b869dba2 update log & check case a master node in,out continuity 2018-10-12 11:06:58 +07:00
DinhLN
5b68344274 Fixed unit test for penalty feature. 2018-10-12 11:06:58 +07:00
DinhLN
d1df0c5786 Add penalty feature for prevent signer without sign in epoc make slow down chain.
Fixed duplicate nonce value for randomize and sign txs

Fixed prevent signers penaltied return in 4 epocs sequent.
2018-10-12 11:06:58 +07:00
Tuna
0f8092389c
Revert "adding double validation layer" 2018-10-12 09:49:37 +07:00
Tuna
bd57df67ae tiny fix unitest 2018-10-09 18:16:22 +07:00
Tuna
80cefd3e55 lookup txPool before listening to imcoming tx 2018-10-09 18:15:55 +07:00
Tuna
6259641448 init double validation layer 2018-10-09 18:15:55 +07:00
DinhLN
76b647cbaf Fixed move process update validators header when prepare block checkpoint. 2018-10-08 15:44:22 +07:00
Tuna
1c1624b13e clean up CLI options 2018-10-08 10:50:28 +07:00
Tuna
6783932836
Revert "Revert "Randomization implementation"" 2018-10-05 14:58:48 +07:00
Tuna
c0a5890379
Revert "Randomization implementation" 2018-10-05 10:47:50 +07:00
DinhLN
911663d851 Fixed bug out of range when masternodes length less than 150.
Move out config to constants.go file in common folder.

Fixed build m2 same as signers length.
2018-10-04 10:21:23 +07:00
DinhLN
26971fedff Fixed randomize generator not using matrix mechanism. 2018-10-04 10:21:07 +07:00
DinhLN
71c5f18854 Fixed unit test for block randomize. 2018-10-04 10:21:07 +07:00
DinhLN
ec764859fd Get randomize m2 offer from validators in smart contract.
Fixed get and build randomize for m2 from smart contract.

Fixed get m2 list from smart contract randomize.
2018-10-04 10:15:52 +07:00
Nguyen Ba Tam
d284374279 convert update M1 method from async to sync 2018-09-06 11:22:45 +07:00
Nguyen Ba Tam
4a93b33256 fix Stake Enable = true & remove check last index when insert chain 2018-09-05 11:19:14 +07:00
Nguyen Ba Tam
9bac2dd5e3 update return error when update M1 2018-08-27 14:45:26 +07:00
Nguyen Ba Tam
9882b08034 fix test download and recover some download config & test 2018-08-27 10:28:15 +07:00
Nguyen Ba Tam
f164501885 format code again 2018-08-24 17:36:29 +07:00
Nguyen Ba Tam
e6ae9f1360 update process M1 synchronie only for downloader , not for fetcher 2018-08-24 17:30:50 +07:00
Nguyen Ba Tam
10b2ec598f split list blocks insert to chain by index (epoch - gas) 2018-08-24 15:00:51 +07:00
DinhLN
98eecdca1b Fixed default for foundation wallet address at puppeth. 2018-08-17 16:28:29 +07:00
DinhLN
ac1c1ec60c Fixed test problem when change config MaxBlockFetch in downloader. 2018-08-17 15:02:45 +07:00
DinhLN
206c2cab4d Fixed move foundation wallet address to genesis config. 2018-08-17 11:03:40 +07:00
Nguyen Ba Tam
6bae36b4d5 Making posv as a separate package 2018-08-17 10:36:27 +07:00
Tuna
70aaf44aa9
Merge pull request #138 from ngtuna/chuck-size-importing
Chuck size importing
2018-08-16 17:47:19 +07:00
Tuna
3df3e1609a statically set chuck size to 900 2018-08-16 17:13:00 +07:00
DinhLN
b3f943898e Fixed reward overflow uint64. 2018-08-16 16:43:30 +07:00
dinhln89
727a7323cd Add signers and finality to block status rpc api. 2018-08-08 14:06:22 +07:00
dinhln89
8222e62f13 Fixed send tx sign using block hash instead of block number.
Fixed unit test for create tx sign.

 interactive rebase in progress; onto 46780b9a7
2018-07-23 11:05:03 +07:00
dinhln89
7892293856 Add unit test for calculate reward for signers at reward checkpoint. 2018-07-23 11:04:50 +07:00
Tuna
f65014512d node waits to his turn until there is a new block comes in 2018-07-19 17:15:21 +07:00
Tuna
d4b7305060
Merge pull request #74 from benjyz/word-staking
staking not mining
2018-07-10 10:14:22 +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
benjyz
f394faf509 staking not mining 2018-07-05 11:44:40 +02:00
Tuna
54a0bad209 get masternodes set from latest checkpoint block header instead of from snapshot 2018-06-29 15:50:03 +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
dinhln89
3097babcaf Fixed add ipc client global variable inject into ethereum instance. 2018-06-28 15:35:58 +07: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
dinhln89
0f75eb97b6 Fixed bug too many open IPC connect at same time. 2018-06-26 17:56:44 +07:00
Tuna
728feadaad
Merge pull request #48 from dinhln89/master
Fixed move method getBlockSingers by blockNumber to utils of contact …
2018-06-25 15:33:38 +07:00
dinhln89
6da42b251d Add unit test for send tx sign for block signer. 2018-06-22 16:33:07 +07:00
dinhln89
150e81c3e8 Refine code using log error when create tx sign. 2018-06-21 14:02:34 +07:00
dinhln89
d502c6b2e4 Fixed move method getBlockSingers by blockNumber to utils of contact package. 2018-06-21 11:24:06 +07:00