Commit graph

1235 commits

Author SHA1 Message Date
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
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
Nguyen Ba Tam
6bae36b4d5 Making posv as a separate package 2018-08-17 10:36:27 +07:00
DinhLN
f2fb32a046 Fixed prevent tx zero gas price add to tx pool. 2018-08-10 11:50:40 +07:00
dinhln89
727a7323cd Add signers and finality to block status rpc api. 2018-08-08 14:06:22 +07:00
Tuna
3442205b15 move gap into genesis config 2018-07-31 11:52:12 +07:00
Tuna
65e0555d5b tiny adjustment: m1gap 2018-07-23 14:00:29 +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
5a771ed6f0 node should also count to his turn in case some nodes are down 2018-07-17 11:04:52 +07:00
Tuna
54a0bad209 get masternodes set from latest checkpoint block header instead of from snapshot 2018-06-29 15:50:03 +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
458bb39287 Hot fixed for bug can't deploy smart contract to master node. 2018-06-19 14:31:17 +07:00
dinhln89
11aad42050 Fixed go lint. 2018-06-13 16:12:07 +07:00
dinhln89
524653abf6 Add feature send tx sign (validator block) from coinbase to smart contract signer after insert block into chain. 2018-06-12 17:54:31 +07:00
Tuna
90ceb82c9c fix unittests 2018-05-31 17:35:45 +07:00
Tuna
0ae49c74fa fix import cycle 2018-05-31 16:34:17 +07:00
Tuna
a546ae74bd gofmt 2018-05-25 16:02:11 +07:00
Tuna
ce3e641085 use cross-package channel listenning to checkpoint 2018-05-22 17:45:09 +07:00
Jia Chenhui
1a8894b3d5 core/state: uniform parameter style (#16398)
- Uniform code style.
2018-03-28 09:26:37 +03:00
hydai
6134990709
core/vm: Fixed typos in core/vm/interpreter.go 2018-03-27 12:29:04 +08:00
hydai
c3dc814fea
core/vm: Fixed typo in core/vm/evm.go 2018-03-26 21:40:00 +08:00
Jia Chenhui
e506d384e9 core/state: fix typo (#16370) 2018-03-26 14:45:34 +03:00
hydai
7c131f4d6d core/asm: fixed typo (posititon -> position) (#16366) 2018-03-26 13:48:39 +03:00
hydai
84c5db5409 core/vm: remove JIT VM codes (#16362) 2018-03-26 13:48:04 +03:00
Péter Szilágyi
1fae50a199
core: minor evm polishes and optimizations 2018-03-26 12:28:46 +03:00
Martin Holst Swende
faed47b3c5
Merge pull request #15990 from markya0616/sim_backend_block_hash
accounts/abi, core: add AddTxWithChain in BlockGen for simulation
2018-03-19 08:29:54 +01:00