Commit graph

1262 commits

Author SHA1 Message Date
DinhLN
76d557c4dd Fixed bug not validate zero gas price for tx deploy SMC. 2018-12-25 14:19:06 +07:00
DinhLN
e780bde12f Fixed comment. 2018-12-24 17:41:27 +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
Nguyen Ba Tam
03ff4d1905 broadcast log when insert block 2018-12-12 15:02:29 +07:00
Tuna
bd5fcbdcde tiny make up 2018-12-10 17:15:32 +07:00
Nguyen Ba Tam
6af064ec32 set block difficulty belong to creator turn 2018-12-10 09:49:06 +07:00
Nguyen Ba Tam
8bcb58b070 check nonce special transaction before promote 2018-12-10 09:41:25 +07:00
Nguyen Ba Tam
33ddb251ef Parallel process block from fetcher 2018-12-10 09:40:15 +07:00
Nguyen Ba Tam
1e930fdb95 refactor RW & pairRW connect for block , transaction 2018-12-10 09:39:24 +07:00
Tuna
1a46b4e618
Merge pull request #273 from nguyenbatam/fix_err_add_sign_tx_to_pool
fix error transaction underpriced when add sign tx to pool
2018-11-27 14:22:15 +07:00
Tuna
bf11a67367 sort by big.Int 2018-11-21 15:22:53 +07:00
Tam Nguyen
f95c606469
Merge pull request #290 from nguyenbatam/change_difficulty_block_in_posv
change difficulty block in POSV consensus
2018-11-21 10:01:14 +07:00
Nguyen Ba Tam
2ef491ea4e change difficulty block in posv 2018-11-21 09:19:52 +07:00
Nguyen Ba Tam
4b00409b8f fix error transaction underpriced when add sign tx to pool(full) 2018-11-14 16:34:49 +07:00
Tuna
66a5950ff3 fix unit test: remove td test 2018-11-14 16:28:56 +07:00
Tuna
852fbef24a stop node when updateM1 fails 2018-11-14 16:28:56 +07:00
Nguyen Ba Tam
321d0a342d fix reorg unit test 2018-11-14 10:44:12 +07:00
Nguyen Ba Tam
2e53774f67 fix error externTd 2018-11-12 14:45:54 +07:00
Nguyen Ba Tam
edf91f5d50 change condition reorg only block number > current number 2018-11-12 14:21:22 +07:00
Nguyen Ba Tam
8b291e0da6 fix unit test tx pool 2018-11-12 10:33:36 +07:00
Nguyen Ba Tam
2006e3240a limit max threshold nonce in queue 2018-11-10 10:42:46 +07:00
DinhLN
2afd4bf5cd Fixed golint. 2018-11-06 11:40:47 +07:00
DinhLN
4b26ed4dbb Fixed unit test for new m2 block header. 2018-10-25 01:27:23 +07:00
DinhLN
5360513293 Add new block header validator for store m2 data. 2018-10-24 18:15:16 +07:00
Nguyen Ba Tam
1afaa5f89e move from SubscribeTx to Subscribe Special Tx in Double Validate 2018-10-23 17:40:38 +07:00
Tuna
959dbec5a6 Revert "Revert "adding double validation layer"" 2018-10-23 11:37:57 +07:00
Nguyen Ba Tam
a7c149d76b verify validators info at checkpoint block 2018-10-23 11:09:22 +07:00
Tuna
740e6076e5 fix after reviewing 2018-10-23 10:07:02 +07:00
Nguyen Ba Tam
c243f37fc4 Broadcast special Tx through pairRW 2018-10-23 10:07:02 +07:00
DinhLN
a9e181e5a6 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:49 +07:00
Nguyen Ba Tam
bcfb59fe14 Broadcast special Tx through pairRW 2018-10-23 10:02:48 +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
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
247b7bef90
Merge pull request #180 from nguyenbatam/optimize_insert_new_block
Optimize insert new block
2018-10-10 11:24:52 +07:00
Tuna
6259641448 init double validation layer 2018-10-09 18:15:55 +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
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
042376daf2 concurrence init messages from transactions when insert block
update number worker base on numberCPU

make up code

prepare cache signer when insert new block and before addTx to pool

fix some error

fix some error
2018-09-26 14:02:42 +07:00
Nguyen Ba Tam
b431d627c8 remove delay when mine new block 2018-09-18 14:42:34 +07:00
Tuna
8d6549d98c adding sort to masternode list 2018-09-10 12:12:51 +07:00
Tuna
efb0d7d724 some msg make up 2018-09-06 11:29:02 +07:00
Nguyen Ba Tam
d284374279 convert update M1 method from async to sync 2018-09-06 11:22:45 +07:00
Tuna
4ceb65f9a5 fix unit tests 2018-09-06 10:45:10 +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