Commit graph

90 commits

Author SHA1 Message Date
Tuna
1caf4a5201
Merge pull request #129 from dinhln89/div_zero
Fixed div by zero for calculate reward.
2018-08-10 15:50:12 +07:00
Nguyen Sy Thanh Son
e6df6346db fix bug smc propose candidate 2018-08-10 07:16:55 +00:00
DinhLN
682b462b4f Fixed div by zero for calculate reward. 2018-08-10 14:13:46 +07:00
Nguyen Sy Thanh Son
3dfe17035a update Tomo Validator smart contract, add getWithdrawCap function 2018-08-09 07:45:12 +00:00
Nguyen Sy Thanh Son
b29f9178b6 resolve file conflict 2018-08-08 07:13:18 +00:00
dinhln89
727a7323cd Add signers and finality to block status rpc api. 2018-08-08 14:06:22 +07:00
Nguyen Sy Thanh Son
c517f4aaf0 accept range compare 2018-08-08 05:01:22 +00:00
Nguyen Sy Thanh Son
bc28934043 fix test reward 2018-08-08 04:30:46 +00:00
Nguyen Sy Thanh Son
aea989cb3a fix unittest block signer 2018-08-07 06:54:31 +00:00
Nguyen Sy Thanh Son
df99d58a00 fix blocksigner deploy 2018-08-07 06:41:26 +00:00
Nguyen Sy Thanh Son
b409d09cb4 update upstream, tomo validator contract 2018-08-07 04:05:56 +00:00
Nguyen Sy Thanh Son
6bccdc7251 update require for blocksigners 2018-07-30 06:44:57 +00:00
Nguyen Sy Thanh Son
908385b31d update block signer with epochNumber 2018-07-27 08:55:38 +00:00
Nguyen Sy Thanh Son
2cfae3e48a merge upstream 2018-07-27 08:15:21 +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
Nguyen Sy Thanh Son
ce56b4c5f9 new blocksigner contract
add foreachstorage into simulate

sign tx debug
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
Nguyen Sy Thanh Son
b13fd1f641 add sign in test 2018-07-20 08:20:34 +00:00
Nguyen Sy Thanh Son
f9f661779c remove require in randomize 2018-07-20 04:01:58 +00:00
Nguyen Sy Thanh Son
92af755d52 simplify randomize smart contract 2018-07-18 11:03:54 +00:00
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
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
Nguyen Sy Thanh Son
aa06d56b98 log contract code for debug and genensis generator 2018-07-12 08:15:29 +00: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
Nguyen Sy Thanh Son
c08cc09b1c add randomize contract 2018-06-29 08:41:33 +00: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
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
Nguyen Sy Thanh Son
4de75a13e9 update smart contract 2018-06-26 07:54:01 +00:00
dinhln89
c182b6ceb2 Fixed add unit test tx sign for validators. 2018-06-25 15:02:08 +07:00
dinhln89
881d01c265 Fixed unit test for create tx sign using smart contract code from genesis block. 2018-06-25 14:00:29 +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
dinhln89
124f587abf Refine code and fixed send tx sign for block signer. 2018-06-20 18:29:22 +07:00
Nguyen Sy Thanh Son
8ac69e17bc add Block Signer Smart contract 2018-06-13 10:34:30 +00:00
Nguyen Sy Thanh Son
10f83d824a update latest validator contract 2018-06-11 05:18:00 +00:00
Nguyen Sy Thanh Son
0d7583ea31 updatp contract, return old code 2018-05-31 08:46:54 +00:00