- 29 4月, 2016 1 次提交
-
-
由 Nicholas Johnson 提交于
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.
-
- 15 4月, 2016 2 次提交
-
-
由 Felix Lange 提交于
-
由 Felix Lange 提交于
This fixes a few uses of unkeyed Body literals which go vet was complaining about.
-
- 01 4月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 24 3月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
This commit serves as a temporary workaround for enabling the jit until the block customisation PR is merged in.
-
由 Jeffrey Wilcke 提交于
The EVM is now initialised with an additional configured object that allows you to turn on debugging options.
-
- 16 3月, 2016 2 次提交
-
-
由 Leif Jurvetson 提交于
-
由 Leif Jurvetson 提交于
-
- 11 3月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
由 Péter Szilágyi 提交于
-
- 10 3月, 2016 1 次提交
-
-
由 zsfelfoldi 提交于
-
- 08 3月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
- 18 2月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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`.
-
- 13 2月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 04 1月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 04 12月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 01 12月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 27 11月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 19 11月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 18 11月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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).
-
- 28 10月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 21 10月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 19 10月, 2015 6 次提交
-
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
- 17 10月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 16 10月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 12 10月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 05 10月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Due to a rebase this probably got overlooked / ignored. This fixes the issue of a block insertion never writing the last block.
-
- 04 10月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
* Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
-
- 02 10月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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.
-
- 23 9月, 2015 3 次提交
-
-
由 Felix Lange 提交于
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.
-
由 Felix Lange 提交于
-
由 Gustav Simonsson 提交于
-
- 22 9月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
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
-
- 21 9月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 15 9月, 2015 1 次提交
-
-
由 Felix Lange 提交于
-