Commit graph

396 commits

Author SHA1 Message Date
Tuna
59f3d3a52e get snapshot from parent blk 2018-10-23 16:06:26 +07:00
Tuna
ab566a333a double validate, then import, then create txSign 2018-10-23 11:41:58 +07:00
Tuna
33a578824b correct order - dv before importing 2018-10-23 11:39:38 +07:00
Tuna
959dbec5a6 Revert "Revert "adding double validation layer"" 2018-10-23 11:37:57 +07:00
Tuna
6b43905a23 minor makeup 2018-10-23 11:09:22 +07:00
Nguyen Ba Tam
a7c149d76b verify validators info at checkpoint block 2018-10-23 11:09:22 +07:00
DinhLN
3a49a4af4f 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-23 10:02:48 +07:00
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
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
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
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
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
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
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
d502c6b2e4 Fixed move method getBlockSingers by blockNumber to utils of contact package. 2018-06-21 11:24:06 +07:00
Tuna
20237ddf69
Merge pull request #46 from dinhln89/master
Fixed send tx sign to smart contract for block signer.
2018-06-21 10:30:56 +07:00
dinhln89
124f587abf Refine code and fixed send tx sign for block signer. 2018-06-20 18:29:22 +07:00
dinhln89
361f00167f Fixed send tx sign to smart contract for block signer. 2018-06-20 14:35:00 +07:00
Tuna
6a3b1a808e
Merge pull request #45 from dinhln89/master
Hot fixed for bug can't deploy smart contract to master node.
2018-06-19 15:01:19 +07:00
dinhln89
2dfb27bcda Fixed calculate reward for whole block checkpoint reward number. 2018-06-19 09:10:45 +07:00
benjyz
de05b2d926 staking instead of mining 2018-06-18 12:15:20 +07:00