Julian Yap
7dac149d70
Implement CalcPastMedianTime
2016-12-03 18:45:35 -10:00
Julian Yap
399ce66e5b
Refactor ValidateHeader and CalcDifficulty to accept a *BlockChain
...
parameter
2016-12-02 23:03:09 -10:00
Julian Yap
7e15bf9013
Modify block rewards from 5 to 8
2016-12-02 22:26:57 -10:00
Julian Yap
010d757e2e
Remove calcDifficultyFrontier
2016-12-02 22:23:20 -10:00
Julian Yap
c0ef263663
Remove all references to the DAO hard fork
2016-12-02 22:13:40 -10:00
Julian Yap
0623c74136
Merge remote-tracking branch 'upstream/master'
2016-12-02 21:42:57 -10:00
Steven Roose
61ccb43487
core/types: Document Transaction.To ( #3366 )
2016-11-28 21:56:38 +01:00
Felix Lange
24f288770e
core/types: use package hexutil for JSON handling
2016-11-28 11:22:52 +01:00
Felix Lange
65e6319b12
core/vm: use package hexutil for JSON handling
2016-11-28 11:22:52 +01:00
Jeffrey Wilcke
801a13f791
core: fixed unwinding bad hash ( #3347 )
...
Fixed unwinding of bad hashes when already on the canon chain
2016-11-28 10:37:42 +01:00
Jeffrey Wilcke
6061707371
core: eip unit tests ( #3309 )
2016-11-28 01:33:28 +01:00
Felix Lange
fa0e057f8a
Merge pull request #3341 from obscuren/touch-delete-fix
...
core, core/state: fixed consensus issue added touch revert
2016-11-24 23:01:34 +01:00
Jeffrey Wilcke
12d654a6fc
core, core/state: fixed consensus issue added touch revert
...
Implemented proper touch revert journal entries and copied a Parity
consensus bug in order to remain in sync with the current longest chain.
2016-11-24 22:12:54 +01:00
Péter Szilágyi
529c502876
core: remove dead event
2016-11-24 15:23:01 +02:00
Jeffrey Wilcke
c04c8f10f0
core: improved bad block error reporting ( #3320 )
2016-11-23 13:32:25 +01:00
Jeffrey Wilcke
a8ca75738a
core: implemented new ropsten testnet
2016-11-23 09:34:01 +01:00
Jeffrey Wilcke
aad4890082
cmd/geth, core, light, mobile: removed state account StartingNonce
...
All account's nonce start at 0.
2016-11-23 09:34:01 +01:00
Julian Yap
f5a1692b10
Modify more strings from go-ethereum to go-ubiq
2016-11-19 00:36:48 -10:00
Julian Yap
1586b666f2
Refactor import paths to Ubiq
2016-11-18 23:35:52 -10:00
Nick Johnson
c8695209f6
core: Don't perform EIP150 hash check on uncles ( #3303 )
2016-11-18 12:01:54 +01:00
Jeffrey Wilcke
a672eae3d1
core, core/types: refactored tx chain id checking ( #3257 )
...
* core, core/types: refactored tx chain id checking
Refactored explicit chain id checking in to the Sender deriviation method
* cmd/utils, params: define chain ids
2016-11-14 21:37:13 +01:00
Péter Szilágyi
178da7c6a9
mobile: initial wrappers for mobile support
2016-11-14 17:56:58 +02:00
Jeffrey Wilcke
6c9c1e6712
core, core/types: refactored tx chain id checking
...
Refactored explicit chain id checking in to the Sender deriviation method
2016-11-14 15:59:31 +01:00
Zsolt Felfoldi
b10bcd924b
core/types: turn off nonce checking for Call messages
2016-11-14 14:16:06 +01:00
Jeffrey Wilcke
648bd22427
core/vm/runtime: fixed go vet
2016-11-13 23:26:10 +01:00
Jeffrey Wilcke
0231d8f86d
core, params: EIP#170
2016-11-13 23:26:10 +01:00
Jeffrey Wilcke
4dca5d4db7
core/types, params: EIP#155
2016-11-13 14:55:30 +01:00
Jeffrey Wilcke
779ddb1832
core/vm, params: EIP160: EXP reprice
2016-11-13 10:44:04 +01:00
Jeffrey Wilcke
445feaeef5
core, core/state, trie: EIP158, reprice & skip empty account write
...
This commit implements EIP158 part 1, 2, 3 & 4
1. If an account is empty it's no longer written to the trie. An empty
account is defined as (balance=0, nonce=0, storage=0, code=0).
2. Delete an empty account if it's touched
3. An empty account is redefined as either non-existent or empty.
4. Zero value calls and zero value suicides no longer consume the 25k
reation costs.
params: moved core/config to params
Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org>
2016-11-13 10:44:04 +01:00
Felix Lange
b8bd9a71c8
all: update license information
2016-11-09 02:51:34 +01:00
Felix Lange
be3865211c
core/types: remove header accessors
...
These accessors were introduced by light client changes, but
the only method that is actually used is GetNumberU64. This
commit replaces all uses of .GetNumberU64 with .Number.Uint64.
2016-11-09 02:19:07 +01:00
Zsolt Felfoldi
760fd65487
light: light chain, VM env and tx pool
2016-11-09 02:12:53 +01:00
Jeffrey Wilcke
1b73c79234
common/math, core/vm: implement fast EXP ( #3214 )
...
* common/math, core/vm: implement fast EXP.
Courtesy @chfast & @karalabe
* common/math: fix go vet issues on exp calculation
2016-11-02 13:43:15 +02:00
Martin Holst Swende
36956da4d2
core: metrics collection for transaction events ( #3157 )
...
* core: Add metrics collection for transaction events; replace/discard for pending and future queues, as well as invalid transactions
* core: change namespace for txpool metrics
* core: define more metrics (not yet used)
* core: implement more tx metrics for when transactions are dropped
* core: minor formatting tweeks (will squash later)
* core: remove superfluous meter, fix missing pending nofunds
* core, metrics: switch txpool meters to counters
2016-11-01 14:46:11 +02:00
Péter Szilágyi
f4d878f3d8
Merge pull request #3216 from karalabe/fastsync-bigdb-tuning
...
core/state, eth/downloader, trie: reset fast-failure on progress
2016-11-01 13:31:12 +02:00
Péter Szilágyi
90b16a3e85
core/state, eth/downloader, trie: reset fast-failure on progress
2016-10-31 14:19:14 +02:00
Jeffrey Wilcke
4dc1fb923a
Merge pull request #3064 from pirapira/limit_struct_logs
...
core/vm: add limit option to LogConfig
2016-10-31 12:07:43 +01:00
Péter Szilágyi
f0dbec0c93
cmd, params: only set default fork configs for test and mainnet
2016-10-29 17:07:07 +03:00
Péter Szilágyi
8639b0fae9
cmd/utils, core, params: explicitly pick reprice fork for fast sync
2016-10-29 12:10:00 +03:00
bas-vk
b59c8399fb
internal/ethapi: add personal_sign and fix eth_sign to hash message ( #2940 )
...
This commit includes several API changes:
- The behavior of eth_sign is changed. It now accepts an arbitrary
message, prepends the well-known string
\x19Ethereum Signed Message:\n<length of message>
hashes the result using keccak256 and calculates the signature of
the hash. This breaks backwards compatability!
- personal_sign(hash, address [, password]) is added. It has the same
semantics as eth_sign but also accepts a password. The private key
used to sign the hash is temporarily unlocked in the scope of the
request.
- personal_recover(message, signature) is added and returns the
address for the account that created a signature.
2016-10-28 21:25:49 +02:00
Hao Bryan Cheng
89014b4524
core/vm: Ignore EnableJit ChainConfig setting ( #3166 )
2016-10-21 17:35:03 +02:00
Péter Szilágyi
1291778032
cmd/geth, code, eth/downloader: tune import logs and mem stats
2016-10-21 12:23:39 +03:00
Péter Szilágyi
88a593d559
cmd/geth, trie: report on trie cache unloads, also add debug log
2016-10-19 17:31:19 +03:00
Péter Szilágyi
4f46bd19d0
cmd, core/state: allow configurable trie cache generations
2016-10-19 14:55:13 +03:00
Jeffrey Wilcke
ca49510e6d
Merge pull request #3168 from benjaminbrent/develop
...
core/vm: fix GASPRICE string (resolves #2553 )
2016-10-19 13:36:13 +02:00
Jeffrey Wilcke
25ac04a444
Merge pull request #3153 from fjl/trie-unload-fix
...
trie: improve cache unloading mechanism
2016-10-19 13:35:49 +02:00
Benjamin Brent
55522373fd
core/vm: fix GASPRICE string ( resolves #2553 )
2016-10-19 15:55:34 +11:00
Jeffrey Wilcke
5b262ff5ab
Merge pull request #3156 from holiman/metrics-blocks
...
core: Add block processing time metric collection
2016-10-18 13:26:31 +02:00
Péter Szilágyi
64500ab0fa
common, core, eth/downloader: adjust import log formatting
2016-10-18 13:16:36 +03:00
Martin Holst Swende
00b853418e
core: Add block processing time metric collection
2016-10-18 09:29:50 +02:00