| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
(cherry picked from commit ca419f3cd8df66f5dc5e8aa61bbd4cd2bfa749dc)
|
|
|
|
|
|
|
|
| |
If geth is busy importing 2048 heavy blocks it can take a while before
it prints anything. This change ensures that a message gets printed
every 8s.
(cherry picked from commit e66b158f0bf85edf39edc978241226cb8f7df45b)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This implements 1b & 1c of EIP150 by adding a new GasTable which must be
returned from the RuleSet config method. This table is used to determine
the gas prices for the current epoch.
Please note that when the CreateBySuicide gas price is set it is assumed
that we're in the new epoch phase.
In addition this PR will serve as temporary basis while refactorisation
in being done in the EVM64 PR, which will substentially overhaul the gas
price code.
(cherry picked from commit 64af2aafdaf16d0bab4c2b89573324b076602bab)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* trie: store nodes as pointers
This avoids memory copies when unwrapping node interface values.
name old time/op new time/op delta
Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15)
GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15)
UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15)
UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14)
HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15)
HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13)
* trie: close temporary databases in GetDB benchmark
* trie: don't keep []byte from DB load around
Nodes decoded from a DB load kept hashes and values as sub-slices of
the DB value. This can be a problem because loading from leveldb often
returns []byte with a cap that's larger than necessary, increasing
memory usage.
* trie: unload old cached nodes
* trie, core/state: use cache unloading for account trie
* trie: use explicit private flags (fixes Go 1.5 reflection issue).
* trie: fixup cachegen overflow at request of nick
* core/state: rename journal size constant
(cherry picked from commit 40cdcf1183df235e4b32cfdbf6182a00a0e49f24)
|
|
|
|
| |
(cherry picked from commit 182d9cb752ffe08fc5e40718031bc8a497311ff5)
|
|
|
|
| |
(cherry picked from commit 16d8397e30ea0e4d07a07f5c4416b8888daf9796)
|
|
|
|
| |
(cherry picked from commit b4a52513915d5a39ac055fc38cafed70098eb698)
|
|
|
|
| |
(cherry picked from commit a183ea29f9313cb1d00ed8f73bfbc4ae51e9cb04)
|
|
|
|
| |
(cherry picked from commit affffb39b366321e47784e48c469da9584ceb92c)
|
|
|
|
| |
(cherry picked from commit 0ef327bbee79c01a69ba59258acc6ce3a48bc288)
|
|
|
|
| |
(cherry picked from commit 795b70423eac7180ab85b735f64aae9d6a10449d)
|
|
|
|
|
|
| |
There is no need to use the reflection-based decoder to decode []byte.
(cherry picked from commit 3c836dd71b192de24774b1848173a4eb0ca9a63b)
|
|
|
|
|
|
| |
The delete/remove naming has caused endless confusion in the past.
(cherry picked from commit 90fce8bfa621f8c3be6663d62740783949111ff1)
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit replaces the deep-copy based state revert mechanism with a
linear complexity journal. This commit also hides several internal
StateDB methods to limit the number of ways in which calling code can
use the journal incorrectly.
As usual consultation and bug fixes to the initial implementation were
provided by @karalabe, @obscuren and @Arachnid. Thank you!
(cherry picked from commit 1f1ea18b5414bea22332bb4fce53cc95b5c6a07d)
|
|
|
|
|
|
|
|
|
|
| |
45bc1d21d3c1
Two new tests are skipped because they're buggy. Making some newer
random state tests work required implementing the 'compressed return
value encoding'.
(cherry picked from commit 1b7b2ba2163c7b2b2acc0c4f107951ad873cd8a4)
|
|
|
|
| |
(cherry picked from commit b7159818f9eb102ac842199fd5af0efca7bdd6b0)
|
|
|
|
|
|
| |
in the VM
(cherry picked from commit cb84e3f02953f2df166ae69369d222dcbbd7d78d)
|
|
|
|
| |
(cherry picked from commit 710435b51b97b4c688b70bda35ab9d1aa704a988)
|
|
|
|
| |
(cherry picked from commit cd791bd855b55b95afc8a5c8f56b8bf67863d099)
|
|
|
|
|
|
|
| |
This change introduces a global, per-state cache that keeps account data
in the canon state. Thanks to @karalabe for lots of fixes.
(cherry picked from commit a59a93f476434f2805c8fd3e10bf1b2f579b078f)
|
|
|
|
| |
(cherry picked from commit 25ed5feddadea8201974bfacb2a57d060b697acb)
|
|
|
|
|
|
| |
objects
(cherry picked from commit 581b320b9dfb42c0c4842e0bc5aeb507267a8eba)
|
|
|
|
|
|
|
|
|
|
|
|
| |
canonical hash is set
(cherry picked from commit bb8059f6aa86d1052d7c2dd75a6985982cb278f4)
Conflicts:
core/blockchain.go
core/database_util.go
core/headerchain.go
eth/filters/filter.go
|
|
|
|
|
|
| |
Fixes #2825
(cherry picked from commit e4736fe46938008b7fa88879f728fa81c6ce09e8)
|
|
|
|
| |
(cherry picked from commit 2c2e389b778b490fcaf14d9cc45a750647ca5c68)
|
|
|
|
|
|
| |
test DAO
(cherry picked from commit 3291235711082759cd7b70253c02150a80d57011)
|
|
|
|
| |
(cherry picked from commit 461cdb593b9e5bd9ae9ac35c68809a3a29290dcb)
|
|
|
|
| |
(cherry picked from commit 7f00e8c0331bf13739e749bab88bf9006ca02f96)
|
|
|
|
| |
(cherry picked from commit a87089fd2dc08a69a4a4f1ef93db9a2871d819a3)
|
|
|
|
| |
(cherry picked from commit 9e56811a3773e225bedf6bf0003327ea1aaae040)
|
|
|
|
|
|
| |
blocks
(cherry picked from commit 6060e098c929792f455d7f580ed91e914d28cf3b)
|
|
|
|
| |
(cherry picked from commit f5a29eab5ce6ada8fef2378b96384cc81586b6ce)
|
|
|
|
|
|
| |
implementation"
This reverts commit a9c94cbf48fefe39104ee3495df139ff374dd219.
|
|
|
|
|
|
| |
soft-fork"
This reverts commit f31a3a251afad1d4c7169bc530fe60471df36122.
|
|
|
|
| |
This reverts commit aefffc9ed8ca60ebe58e06066b30f1283493f488.
|
|
|
|
|
|
| |
block"
This reverts commit b170a80cdcb380765c711017588b2d148eb1601e.
|
|
|
|
| |
(cherry picked from commit 1e3a7d4fab36df9382d023519ef10e3c34bafa3b)
|
|
|
|
| |
(cherry picked from commit ba784bdf36f2daf7827ec1ec864f3393ba8d86a0)
|
|
|
|
| |
(cherry picked from commit c4de28938ff8c688c4444c8b3e8e28a52cbc62ff)
|
|
|
|
|
|
|
|
|
|
| |
This implements a generic approach to enabling soft forks by allowing
anyone to put in hashes of contracts that should not be interacted from.
This will help "The DAO" in their endevour to stop any whithdrawals from
any DAO contract by convincing the mining community to accept their code
hash.
(cherry picked from commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
transactions
Consensus rules dictate that objects can only be removed during the
finalisation of the transaction (i.e. after all calls have finished).
Thus calling a suicided contract twice from the same transaction:
A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided
object twice from two transactions: A->B(S), A->B, results in only one
suicide and a call to an empty object.
Our current debug tracing functionality replays all transaction that
were executed prior to the targetted transaction in order to provide
the user with an accurate trace.
As a side effect to calling StateDB.IntermediateRoot it also deletes any
suicides objects. Our tracing code never calls this function because it
isn't interested in the intermediate root. Becasue of this it caused a
bug in the tracing code where transactions that were send to priviously
deleted objects resulted in two suicides rather than one suicide and a
call to an empty object.
Fixes #2542
(cherry picked from commit bb3651abc865c6f6babec0d357afa85f5a539d83)
|
|
|
|
|
|
| |
Fixes #2650
(cherry picked from commit fc85dd175ebeef4996e5d370a7a2f085c922196d)
|
|
|
|
|
|
| |
caching
(cherry picked from commit 748d1c171d74fbf6b6051fd629d3c2204dd930e3)
|
|
|
|
|
|
| |
(testnet)
(cherry picked from commit 8ee84584a407464511b453eebaa31854979aa593)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We used to have reporting of bad blocks, but it was disabled
before the Frontier release. We need it back because users
are usually unable to provide the full RLP data of a bad
block when it occurs.
A shortcoming of this particular implementation is that the
origin peer is not tracked for blocks received during eth/63
sync. No origin peer info is still better than no report at
all though.
(cherry picked from commit ca18202eb9a94de1d4b51c1572fa74edfa2773bf)
|
|
|
|
|
|
| |
method `TestBytes`
(cherry picked from commit faf663133b7d784406a6bfc029404b2718abc66d)
|
|
|
|
|
|
| |
This fixes an issue where it's theoretical possible to cause a consensus
failure when hitting the lower end of the difficulty, though pratically
impossible it's worth a fix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Shutting down geth prints hundreds of annoying error messages in some
cases. The errors appear because the Stop method of eth.ProtocolManager,
miner.Miner and core.TxPool is asynchronous. Left over peer sessions
generate events which are processed after Stop even though the database
has already been closed.
The fix is to make Stop synchronous using sync.WaitGroup.
For eth.ProtocolManager, in order to make use of WaitGroup safe, we need
a way to stop new peer sessions from being added while waiting on the
WaitGroup. The eth protocol Run function now selects on a signaling
channel and adds to the WaitGroup only if ProtocolManager is not
shutting down.
For miner.worker and core.TxPool the number of goroutines is static,
WaitGroup can be used in the usual way without additional
synchronisation.
|
|
|
|
| |
This is necessary for external users of the go-ethereum code who want to, for instance, build a custom node that plays back transactions, as core.ApplyTransaction requires a ChainConfig as a parameter.
|
|
|
|
|
|
|
|
|
| |
According to our own instructions the genesis config attribute should be
"config". The genesis definition in the go code, however, has a field
called `ChainConfig`. This field now has a `json:"config"` struct tag so
that the json is properly unmarshalled.
This fixes #2482
|
| |
|
|
|
|
| |
Lazy "I'll just put return here instead of fixing the test" found by go vet.
|
|
|
|
|
| |
This fixes a few uses of unkeyed Body literals which go vet was
complaining about.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Exposes some core methods to transition and compute new state
information and adds an additional return value to the transition db
method to fetch required gas for that particular message (excluding gas
refunds from any SSTORE[X] = 0 and SUICIDE.
Fixes #2395
|
|
|
|
|
|
|
| |
The chain maker and the simulated backend now run with a homestead phase
beginning at block 0 (i.e. there's no frontier).
This commit also fixes up #2388
|
|
|
|
|
|
|
|
|
| |
Added chain configuration options and write out during genesis database
insertion. If no "config" was found, nothing is written to the database.
Configurations are written on a per genesis base. This means
that any chain (which is identified by it's genesis hash) can have their
own chain settings.
|
|
|
|
|
| |
This commit serves as a temporary workaround for enabling the jit until
the block customisation PR is merged in.
|
|
|
|
|
| |
The EVM is now initialised with an additional configured object that
allows you to turn on debugging options.
|
|
|
|
|
|
|
| |
The EVM was previously initialised and created for every CALL, CALLCODE,
DELEGATECALL and CREATE. This PR changes this behaviour so that the same
EVM can be used through the session and beyond as long as the
Environment sticks around.
|
|\
| |
| | |
core: fixed various typos
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
core: added future proc mutex lock
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added a future lock which prevents the anything being added or removed
from or to the set when looping over the set of blocks. This fixes a nil
pointer in the range loop when trying to retrieve a block from the set
which was previously available but removed due to regular chain
processing.
Fixes #2305
|
|/ |
|
|
|
|
| |
light.LightChain
|
|\
| |
| | |
core: announce ChainSideEvent during reorg
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously all blocks that were already in our chain were never re
announced as potential uncle block (e.g. ChainSideEvent). This is
problematic during mining where you want to gather as much possible
uncles as possible increasing the profit. This is now addressed in this
PR where during reorganisations of chains the old chain is regarded as
uncles.
Fixed #2298
|
|/ |
|
|\
| |
| | |
core, miner: add PendingStateEvent to track non-log updates.
|
| | |
|
|\ \
| |/
|/| |
core: improved check for contract creation
|
| | |
|
|\ \
| | |
| | | |
Closes #2241: Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly
|
| | |
| | |
| | |
| | | |
As we aren't really using the standarized SHA-3
|
|\ \ \
| |/ /
|/| | |
core/state, trie: add node iterator, test state/trie sync consistency
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Assuming the following scenario where a miner has 15% of all hashing
power and the ability to exert a moderate control over the network to
the point where if the attacker sees a message A, it can't stop A from
propagating, but what it **can** do is send a message B and ensure that
most nodes see B before A. The attacker can then selfish mine and
augment selfish mining strategy by giving his own blocks an advantage.
This change makes the time at which a block is received less relevant
and so the level of control an attacker has over the network no longer
makes a difference.
This change changes the current td algorithm `B_td > C_td` to the new
algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
|
| |
| |
| |
| |
| |
| | |
* Removed some strange code that didn't apply state reverting properly
* Refactored code setting from vm & state transition to the executioner
* Updated tests
|
|/
|
|
|
|
|
|
| |
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
|
|
|
|
|
|
| |
Pending logs are now filterable through the Go API. Filter API changed
such that each filter type has it's own bucket and adding filter
explicitly requires you specify the bucket to put it in.
|
|
|
|
|
|
| |
Implemented `runtime.Call` which uses - unlike Execute - the given state
for the execution and the address of the contract you wish to execute.
Unlike `Execute`, `Call` requires a config.
|
|\
| |
| | |
core/state, trie: don't leak database writes before commit
|
| | |
|
| | |
|
|\ \
| | |
| | | |
core/vm, rpc/api: added debug_replayTransaction RPC call
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
integrated feedback
Integrated code review suggestions
Integrated last review comments
|
|/ / |
|
| | |
|
|\ \
| |/
|/| |
core/vm: resolve circular dependency to debug vm storage
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
core, eth/downloader: ensure state presence in ancestor lookup
|
| | |
|
|/ |
|
|
|
|
|
| |
In order to make this happen, kill all remaining trivial uses of
common/{rlp,value}.go. The non-trivial ones have been updated earlier.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The test chain generated by makeChainFork included invalid uncle
headers, crashing the generator during the state commit.
The headers were invalid because they used the iteration counter as the
block number, even though makeChainFork uses a block with number > 0 as
the parent. Fix this by introducing BlockGen.Number, which allows
accessing the actual number of the block being generated.
|
| |
|
|\
| |
| | |
rpc: new RPC implementation with pub/sub support
|
| | |
|
| | |
|
|/
|
|
|
|
| |
When a chain reorganisation occurs we collect the logs that were deleted
during the chain reorganisation. The removed logs are posted to the
event mux indicating that those were deleted during the reorg.
|
| |
|
| |
|
|\
| |
| | |
core, eth, rpc: split out block validator and state processor
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This removes the burden on a single object to take care of all
validation and state processing. Now instead the validation is done by
the `core.BlockValidator` (`types.Validator`) that takes care of both
header and uncle validation through the `ValidateBlock` method and state
validation through the `ValidateState` method. The state processing is
done by a new object `core.StateProcessor` (`types.Processor`) and
accepts a new state as input and uses that to process the given block's
transactions (and uncles for rewords) to calculate the state root for
the next block (P_n + 1).
|
|/
|
|
|
|
| |
The runtime environment can be used for simple basic execution of
contract code without the requirement of setting up a full stack and
operates fully in memory.
|
| |
|
| |
|
|\
| |
| | |
core/vm: JIT segmentation
|
| | |
|
| |
| |
| |
| |
| | |
* multi-push segments
* static jumps segments
|
| |
| |
| |
| |
| |
| | |
Moved the execution of instructions to the instruction it self. This
will allow for specialised instructions (e.g. segments) to be execution
in the same manner as regular instructions.
|
|\ \
| | |
| | | |
eth/63 fast synchronization algorithm
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| | |
Make sure that we're fetching the hash from the current chain and not
the canonical chain.
|
|/
|
|
|
|
|
| |
The amount of gas available for tx execution was tracked in the
StateObject representing the coinbase account. This commit makes the gas
counter a separate type in package core, which avoids unintended
consequences of intertwining the counter with state logic.
|
|\
| |
| | |
core, eth/filters, miner, xeth: Optimised log filtering
|
| |
| |
| |
| |
| |
| |
| | |
Log filtering is now using a MIPmap like approach where addresses of
logs are added to a mapped bloom bin. The current levels for the MIP are
in ranges of 1.000.000, 500.000, 100.000, 50.000, 1.000. Logs are
therefor filtered in batches of 1.000.
|
| | |
|
|\ \
| | |
| | | |
all: Add GPU mining, disabled by default
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | | |
core, eth, event, miner, xeth: fix event post / subscription race
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
cmd, core, eth: added official testnet
|
| | | |
|
|\ \ \
| | | |
| | | | |
core, core/vm, cmd/evm: remove redundant balance check
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
core: fix #1848, block receipts db entry for the genesis too
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Due to a rebase this probably got overlooked / ignored. This fixes the
issue of a block insertion never writing the last block.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Renamed ChainManager to BlockChain
* Checkpointing is no longer required and never really properly worked
when the state was corrupted.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Moved `vm.Transfer` to `core` package and changed execution to call
`env.Transfer` instead of `core.Transfer` directly.
* core/vm: byte code VM moved to jump table instead of switch
* Moved `vm.Transfer` to `core` package and changed execution to call
`env.Transfer` instead of `core.Transfer` directly.
* Byte code VM now shares the same code as the JITVM
* Renamed Context to Contract
* Changed initialiser of state transition & unexported methods
* Removed the Execution object and refactor `Call`, `CallCode` &
`Create` in to their own functions instead of being methods.
* Removed the hard dep on the state for the VM. The VM now
depends on a Database interface returned by the environment. In the
process the core now depends less on the statedb by usage of the env
* Moved `Log` from package `core/state` to package `core/vm`.
|
| |/
|/|
| |
| |
| |
| |
| | |
Moved the filtering system from `event` to `eth/filters` package and
removed the `core.Filter` object. The `filters.Filter` object now
requires a `common.Database` rather than a `eth.Backend` and invokes the
`core.GetBlockByX` directly rather than thru a "manager".
|
| |
| |
| |
| |
| |
| |
| |
| | |
This PR solves an issue with the chain manager posting a
`RemovedTransactionEvent`, the tx pool will try to
acquire the chainmanager lock which has previously been locked prior to
posting `RemovedTransactionEvent`. This results in a deadlock in the
core.
|
|\ \
| | |
| | | |
core, trie: new trie
|
| | | |
|
| | | |
|
| |/
|/| |
|
| | |
|
|/
|
|
|
|
|
|
|
| |
The test genesis block was not written properly, block insertion failed
immediately.
While here, fix the panic when shutting down "geth blocktest" with
Ctrl+C. The signal handler is now installed automatically, causing
ethereum.Stop to crash because everything is already stopped.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added a `Difference` method to `types.Transactions` which sets the
receiver to the difference of a to b (NOTE: not a **and** b).
Transaction pool subscribes to RemovedTransactionEvent adding back to
those potential missing from the chain.
When a chain re-org occurs remove any transactions that were removed
from the canonical chain during the re-org as well as the receipts that
were generated in the process.
Closes #1746
|
| |
|
|\
| |
| | |
core: transaction nonce recovery
|
| |
| |
| |
| |
| |
| |
| |
| | |
When the transaction state recovery kicked in it assigned the last
(incorrect) nonce to the pending state which caused transactions with
the same nonce to occur.
Added test for nonce recovery
|
| | |
|
|\ \
| |/
|/| |
core, eth, miner: use pure header validation
|
| | |
|
|/ |
|
|\
| |
| | |
core, core/vm, core/state: remove unused functions
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
eth: implement eth/62 synchronization logic
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
opNumber did not create a new big int which could lead to the block's
number being modified.
|
|\
| |
| | |
core, eth, trie, xeth: merged state, chain, extra databases in one
|
| | |
|
|\ \
| | |
| | | |
cmd/utils, core: disable exp diff for olympic net
|
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Reduced big int allocation by making stack items modifiable. Instead of
adding items such as `common.Big0` to the stack, `new(big.Int)` is
added instead. One must expect that any item that is added to the stack
might change.
|
| |
| |
| |
| |
| | |
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
|
|/
|
|
| |
* changed stack and removed stack ptr. Let go decide on slice reuse.
|
| |
|
| |
|
| |
|
|\
| |
| | |
core: added a running flag to prevent panics in the chainmanager
|
| |
| |
| |
| |
| |
| |
| |
| | |
The running flag will determine whether the chain manager is still
running or not. This will prevent the quit channel from being closed
twice resulting in a panic. This PR should fix this issue.
Closes #1559
|
|\ \
| | |
| | | |
core: added default genesis block
|
| |/
| |
| |
| |
| | |
When a user runs a freshly setup geth w/o a database initialised the
default genesis block is decoded and inserted in to the database.
|
|\ \
| | |
| | | |
Old transaction after resend was not removed from pool
|
| | |
| | |
| | |
| | | |
removed from transaction pool
|
|\ \ \
| | | |
| | | | |
Improved error handling for NewTransactionFromBytes
|
| | |/
| |/|
| | |
| | | |
integrated review comments
|
|/ / |
|
|\ \
| | |
| | | |
all: fix license headers one more time
|
| | |
| | |
| | |
| | | |
I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
core: 5 ether block reward
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
cmd/geth, core, eth: Version 1.0.0
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Genesis release. Closes #1402
Conflicts:
cmd/geth/main.go
|
|/ / / |
|
| | | |
|
|\| |
| | |
| | | |
all: license fixes
|
| | |
| | |
| | |
| | |
| | | |
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
|
|\ \ \
| | | |
| | | | |
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
|
| |/ / |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added PutBlockReceipts; storing receipts by blocks. Eventually this will
require pruning during some cleanup cycle. During forks the receipts by
block are used to get the new canonical receipts and transactions.
This PR fixes #1473 by rewriting transactions and receipts from the point
of where the fork occured.
|
|/
|
|
|
| |
Implemented the --genesis flag thru which we can set a custom genesis
block, including the official Ethereum genesis block.
|
| |
|
|\
| |
| | |
miner, xeth: fire log event during mining. Fix return raw tx
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
| |
Added some additional backward compatibility code for old receipts
|
|
|
|
|
| |
Removed VM errors from the consensus errors. They now used for output
only.
|
|\
| |
| | |
core, miner, tests: added test, implemented bad block reporting
|
| | |
|
|\ \
| | |
| | | |
core/types, xeth: separate tx hash and tx signature hash
|
| |/ |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update => SyncIntermediate
* Added SyncObjects
SyncIntermediate only updates whatever has changed, but, as a side
effect, requires much more disk space.
SyncObjects will only sync whatever is required for a block and will not
save intermediate state to disk. As drawback this requires more time
when more txs come in.
|
| |
|
|
|
|
|
| |
* Added GetReceiptsFromBlock, GetReceipt, PutReceipts
* Added ContractAddress to receipt. See #1042
|
|\
| |
| | |
core, miner: miner header validation, transaction & receipt writing
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Miners do now verify their own header, not their state.
* Changed old putTx and putReceipts to be exported
* Moved writing of transactions and receipts out of the block processer
in to the chain manager. Closes #1386
* Miner post ChainHeadEvent & ChainEvent. Closes #1388
|
|/ |
|
|\ |
|
| |\
| | |
| | | |
core, xeth: core.AddressFromMessage removed => crypto.CreateAddress
|
| | | |
|
|/ / |
|
|/
|
|
|
| |
`geth recover` now accepts both hashes and numbers using "#" and no
longer requires the ethereum instance.
|
|\
| |
| | |
core, cmd/geth: recover by number
|
| | |
|