Commit graph

226 commits

Author SHA1 Message Date
Nguyen Ba Tam
1db1b30088 fix maximum 100 % finality 2018-11-05 11:16:42 +07:00
DinhLN
5360513293 Add new block header validator for store m2 data. 2018-10-24 18:15:16 +07:00
Nguyen Ba Tam
bcfb59fe14 Broadcast special Tx through pairRW 2018-10-23 10:02:48 +07:00
Nguyen Ba Tam
4a1a1039ea change EstimateGas from pending block to latest block will reduce lock time 2018-10-19 16:35:54 +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
1c1624b13e clean up CLI options 2018-10-08 10:50:28 +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
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
b431d627c8 remove delay when mine new block 2018-09-18 14:42:34 +07:00
Nguyen Ba Tam
c9219e5201 fix option Verbosity in toml file 2018-09-07 10:31:44 +07:00
Nguyen Ba Tam
65c222b109 add some config to toml file 2018-09-06 16:07:19 +07:00
DinhLN
b9d700df6e Merge branch 'master' of https://github.com/tomochain/tomochain 2018-08-17 14:39:40 +07:00
Tuna
83cc6b3383 tiny fix 2018-08-17 14:34:57 +07:00
Tuna
1c20a99865 remove dup import 2018-08-17 14:28:17 +07:00
DinhLN
206c2cab4d Fixed move foundation wallet address to genesis config. 2018-08-17 11:03:40 +07:00
Nguyen Ba Tam
a554c5b968 remove 2 commands posv.propose & posv.discard 2018-08-17 10:37:04 +07:00
Tam Nguyen
d404aed816 Update web3ext.go 2018-08-17 10:36:49 +07:00
Nguyen Ba Tam
b8f6655d37 remove call api from rpc to consensus posv and add again with clique 2018-08-17 10:36:49 +07:00
Nguyen Ba Tam
6bae36b4d5 Making posv as a separate package 2018-08-17 10:36:27 +07:00
Tuna
f9d15d7e9d
Merge pull request #132 from ngtuna/update-m1
directly set mns to snapshot
2018-08-16 11:51:10 +07:00
Tuna
0cba36a6ba directly set mns to snapshot 2018-08-15 18:02:48 +07:00
Nguyen Ba Tam
47d25bf2c3 change some log , return error to user 2018-08-11 15:30:29 +07:00
Nguyen Ba Tam
b2ed6dce8b Reject all transactions to blocksigners with rpc ipc 2018-08-11 11:37:46 +07:00
DinhLN
311655240a Fixed finality using percent instead of boolean value for block staus api. 2018-08-09 10:36:34 +07:00
dinhln89
727a7323cd Add signers and finality to block status rpc api. 2018-08-08 14:06:22 +07:00
Tuna
324e9bb91a clean up Makefile
add build puppeth directly
2018-07-31 14:49:10 +07:00
Tuna
a29caba063 fix typo 2018-04-10 16:57:24 +07:00
Péter Szilágyi
28ef23f446
internal/ethapi: make resent gas params optional 2018-03-08 12:29:42 +02:00
Péter Szilágyi
b7e57ca1d0
cmd/evm, core/vm, internal/ethapi: don't disable call gas metering 2018-03-05 14:01:13 +02:00
Felix Lange
12f4d28411
internal/debug: add support for mutex profiles (#16230) 2018-03-03 00:52:21 +01:00
Péter Szilágyi
ba7b384019
internal/ethapi: fix getTransactionReceipt 2018-02-28 12:40:15 +02:00
Anton Evangelatov
ae9f97221a metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910)
* go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter.

* vendor: change nonsense/go-metrics to ethersphere/go-metrics

* go-metrics: add tests. move ResettingTimer logic from reporter to type.

* all, metrics: pull in metrics package in go-ethereum

* metrics/test: make sure metrics are enabled for tests

* metrics: apply gosimple rules

* metrics/exp, internal/debug: init expvar endpoint when starting pprof server

* internal/debug: tiny comment formatting fix
2018-02-23 11:56:08 +02:00
Péter Szilágyi
5cf1d35470
eth, les, light: filter on logs only, derive receipts on demand 2018-02-22 19:12:43 +02:00
Martin Holst Swende
b585f76128 ethapi: prevent creating contract if no data is provided (#16108)
* ethapi: prevent creating contract if no data is provided

* internal/ethapi: downcase error for no data on contract creation
2018-02-21 16:10:18 +02:00
Felix Lange
a5c0bbb4f4
all: update license information (#16089) 2018-02-14 13:49:11 +01:00
ferhat elmas
52ad848b2e internal/build: fix usage of strings.TrimLeft (#16066) 2018-02-12 11:18:35 +02:00
Péter Szilágyi
55599ee95d core, trie: intermediate mempool between trie and database (#15857)
This commit reduces database I/O by not writing every state trie to disk.
2018-02-05 17:40:32 +01:00
Guillaume Ballet
dd7a715d73 internal: fix a typo that caused a lint error on travis (#15987) 2018-01-29 15:35:05 +02:00
Martin Holst Swende
722bac84fa ethapi: add personal.signTransaction (#15971)
* ethapi: add personal.signTransaction

* ethapi: refactor to minimize duplicate code

* ethapi: make nonce,gas,gasPrice obligatory in signTransaction
2018-01-26 19:32:43 +02:00
Felix Lange
f08cd94fb7
cmd/ethkey: fix formatting, review nits (#15807)
This commit:

- Adds a --msgfile option to read the message to sign from a file
  instead of command line argument.
- Adds a unit test for signing subcommands.
- Removes some weird whitespace in the code.
2018-01-16 15:42:41 +01:00
Felix Lange
5c2f1e0014 all: update generated code (#15808)
* core/types, core/vm, eth, tests: regenerate gencodec files

* Makefile: update devtools target

Install protoc-gen-go and print reminders about npm, solc and protoc.
Also switch to github.com/kevinburke/go-bindata because it's more
maintained.

* contracts/ens: update contracts and regenerate with solidity v0.4.19

The newer upstream version of the FIFSRegistrar contract doesn't set the
resolver anymore. The resolver is now deployed separately.

* contracts/release: regenerate with solidity v0.4.19

* contracts/chequebook: fix fallback and regenerate with solidity v0.4.19

The contract didn't have a fallback function, payments would be rejected
when compiled with newer solidity. References to 'mortal' and 'owned'
use the local file system so we can compile without network access.

* p2p/discv5: regenerate with recent stringer

* cmd/faucet: regenerate

* dashboard: regenerate

* eth/tracers: regenerate

* internal/jsre/deps: regenerate

* dashboard: avoid sed -i because it's not portable

* accounts/usbwallet/internal/trezor: fix go generate warnings
2018-01-08 14:15:57 +02:00
Péter Szilágyi
6f69cdd109
all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
Péter Szilágyi
5258785c81
cmd, core, eth/tracers: support fancier js tracing (#15516)
* cmd, core, eth/tracers: support fancier js tracing

* eth, internal/web3ext: rework trace API, concurrency, chain tracing

* eth/tracers: add three more JavaScript tracers

* eth/tracers, vendor: swap ottovm to duktape for tracing

* core, eth, internal: finalize call tracer and needed extras

* eth, tests: prestate tracer, call test suite, rewinding

* vendor: fix windows builds for tracer js engine

* vendor: temporary duktape fix

* eth/tracers: fix up 4byte and evmdis tracer

* vendor: pull in latest duktape with my upstream fixes

* eth: fix some review comments

* eth: rename rewind to reexec to make it more obvious

* core/vm: terminate tracing using defers
2017-12-21 13:56:11 +02:00
Péter Szilágyi
fe070ab5c3
Merge pull request #15674 from chfast/vm-no-snapshot-param
core/vm: Remove snapshot param from Interpreter.Run()
2017-12-18 16:16:59 +02:00
Felix Lange
8c33ac10bf
internal/ethapi: support "input" in transaction args (#15640)
The tx data field is called "input" in returned objects and "data" in
argument objects. Make it so "input" can be used, but bail if both
are set.
2017-12-18 12:50:21 +01:00
Paweł Bylica
fb5f25eeee
core/vm: Remove snapshot param from Interpreter.Run() 2017-12-15 13:33:35 +01:00
rhaps107
e9971d356b internal/ethapi: don't crash for missing receipts
Fixes #15408
Fixes #14432
2017-12-14 13:24:34 +01:00
yoza
bbea4b2b53 internal/ethapi: fix typo in comment (#15659) 2017-12-12 18:55:39 +01:00
Péter Szilágyi
989fb4472a
internal/ethapi: avoid recreating JavaScript tracer wrappers 2017-11-24 13:55:12 +02:00