Commit graph

48 commits

Author SHA1 Message Date
Nguyen Sy Thanh Son
752ac2b426 clear redundant code 2019-01-03 05:04:26 +00:00
Nguyen Sy Thanh Son
a210d7ad14 remove case after use 2019-01-03 04:15:20 +00:00
Nguyen Sy Thanh Son
e526f6334a get blocksigner from cached 2019-01-02 17:21:14 +00:00
Nguyen Sy Thanh Son
d3ad6c39f2 try use cache for blocksigners 2019-01-02 12:50:05 +00:00
Nguyen Sy Thanh Son
c00d2dc9aa tx from 2019-01-02 11:49:50 +00:00
Nguyen Sy Thanh Son
b1c5475f4f Merge branch 'master' of github.com:tomochain/tomochain 2019-01-02 11:37:48 +00:00
Nguyen Sy Thanh Son
51cc41b525 goroutine get signers 2018-12-31 17:25:29 +00:00
Nguyen Sy Thanh Son
2ad8d44e54 evm mem db 2018-12-31 09:03:06 +00:00
Tuna
b0200cd90f return err properly, apply retry at GetSignersFromContract 2018-12-29 16:14:27 +07:00
Nguyen Ba Tam
17cec00875 create new api get reward 2018-12-28 10:37:07 +07:00
etienne-napoleone
7623d5660a
update logging
Downgrade some errors to warn
Replace a fmt by info
close #269
close #349
2018-12-18 17:08:37 +07:00
DinhLN
46bc890b62 Fixed reward only for masternodes in block checkpoint. 2018-11-23 12:07:45 +07:00
DinhLN
8aed80d428 Fixed reward inflation and add unit test. 2018-11-09 15:09:08 +07:00
Tuna
969337a0ab
Merge pull request #258 from nguyenbatam/tiny_fix_sync_when_create_transaction_sign
fix error duplicate nonce when fetcher insert multi blocks - concurrent inserts
2018-11-08 04:54:54 +01:00
Nguyen Ba Tam
51792adf19 reduce gas limit for Tx randomize 2018-11-06 15:12:02 +07:00
Nguyen Ba Tam
0a7f10933b fix error duplicate nonce when fetcher insert multi blocks - concurrent inserts 2018-11-05 16:31:10 +07:00
Tuna
7d0e91fd0d move DV to posv package 2018-10-24 17:14:58 +07:00
Tuna
959dbec5a6 Revert "Revert "adding double validation layer"" 2018-10-23 11:37:57 +07:00
Tuna
0f8092389c
Revert "adding double validation layer" 2018-10-12 09:49:37 +07:00
Tuna
6d7cfe14d8 trim m2 set to fit m1 set 2018-10-09 18:15:55 +07:00
Tuna
6259641448 init double validation layer 2018-10-09 18:15:55 +07:00
DinhLN
4c2c909f0f Fixed duplicate nonce value for randomize and sign txs 2018-10-06 10:29:52 +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
ecd597ac92 Fixed epoc number to 900 for randomize. 2018-10-04 10:21:07 +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
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
682b462b4f Fixed div by zero for calculate reward. 2018-08-10 14:13:46 +07:00
Nguyen Sy Thanh Son
bc28934043 fix test reward 2018-08-08 04:30:46 +00:00
Tuna
d88c445cb5 add license header to missing files 2018-07-27 11:04:24 +07:00
dinhln89
275d76c17a Fixed random hash function for unit test. 2018-07-26 09:42:06 +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
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
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
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
Renamed from contracts/tomo.go (Browse further)