Christopher Franko
6a6cd10299
rebase 1.2.2
2015-10-13 11:56:11 -04:00
Jeffrey Wilcke
b527c9c718
core: deadlock in chainmanager after posting RemovedTransactionEvent
...
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.
2015-10-02 12:41:10 +02:00
Péter Szilágyi
b8b996be74
core: fix a formatting loop in BadHashError
2015-09-29 09:11:38 +03:00
Christopher Franko
8997f08ecc
make the diff adjustments better
2015-09-24 15:38:26 -04:00
Gustav Simonsson
bfde1a4305
core: Add BadHashErr and test for BadHashes handling
2015-09-22 18:02:26 +02:00
Felix Lange
70b6174748
cmd/geth, core: make "geth blocktest" work again
...
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.
2015-09-22 23:55:31 +02:00
Jeffrey Wilcke
eaa4473dbd
core, core/types: readd transactions after chain re-org
...
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
2015-09-21 20:33:28 +02:00
Péter Szilágyi
399c920380
core: separate and contain POW verifier, extensive tests
2015-09-21 10:24:49 +03:00
Jeffrey Wilcke
b94b9b0158
Merge pull request #1817 from obscuren/nonce-fix
...
core: transaction nonce recovery
2015-09-18 15:56:10 -07:00
Jeffrey Wilcke
b60a27627b
core: transaction nonce recovery fix
...
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
2015-09-18 11:59:21 +02:00
Péter Szilágyi
6f3cb12924
core: allow modifying test-chain block times
2015-09-17 13:43:52 +03:00
Jeffrey Wilcke
58fbcaa750
Merge pull request #1810 from karalabe/pure-header-verifications-2
...
core, eth, miner: use pure header validation
2015-09-16 14:21:12 -07:00
Péter Szilágyi
821619e1c3
core, eth, miner: use pure header validation
2015-09-16 10:46:28 +03:00
Felix Lange
8c4dab77ba
all: move common.Database to package ethdb
2015-09-14 23:36:30 +02:00
Christopher Franko
4c72a99208
update genesis
2015-09-13 20:48:41 -04:00
Christopher Franko
164a9acc5d
updated copyright headers
2015-09-12 18:17:11 -04:00
Jeffrey Wilcke
55ed8d108d
Merge pull request #1789 from Gustav-Simonsson/core_remove_unused_functions
...
core, core/vm, core/state: remove unused functions
2015-09-11 15:29:27 -07:00
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
2015-09-11 17:42:25 +03:00
Péter Szilágyi
2b339cbbd8
core, eth: split the db blocks into headers and bodies
2015-09-11 17:42:25 +03:00
Christopher Franko
ec3fb93c03
Update legalese
2015-09-11 08:22:53 -04:00
Christopher Franko
9d114778a0
Merge remote-tracking branch 'ethereum/master' into develop
...
Conflicts:
cmd/gexp/main.go
2015-09-10 19:18:27 -04:00
Gustav Simonsson
b81a6e6ab8
core, core/vm, core/state: remove unused functions
2015-09-10 21:10:58 +02:00
Felix Lange
cde06b4009
Merge pull request #1781 from Gustav-Simonsson/state_object_copy
...
core/state: deleted field in StateObject Copy() and unit test
(cherry picked from commit 90f1fe0ed2 )
2015-09-09 18:46:27 +02:00
Gustav Simonsson
bf879ef230
core/state: test formatting adhering to Go convention
2015-09-09 00:26:18 +02:00
Gustav Simonsson
004ed786b4
core/state: deleted field in StateObject Copy() and unit test
2015-09-08 15:56:11 +02:00
Christopher Franko
1c45431c53
update testnet block
...
update docker
update docker file
docker update 2
oi
docker again
update testnet block
update docker
update docker file
docker update 2
oi
docker again
update testnet block
update docker
update docker file
docker update 2
oi
docker again
docker2
docker3
fixed gvm
docker change
docking is meh
i hate docker
dockingsucks
update blockreward to 8
because its a lucky number 💃
update 60606 to 42786
60606 looks evil
42786 is my birthday
update jsre
replace eth for exp
update blocktime and test_genesis
fix test genesis
2015-09-07 20:25:05 -04:00
Christopher Franko
4dab840f71
expanse
2015-09-01 20:42:36 -04:00
Christopher Franko
64ced6629a
github update
2015-09-01 19:41:15 -04:00
Christopher Franko
92b5926495
Merge remote-tracking branch 'ethereum/master' into develop
...
Conflicts:
cmd/gexp/main.go
2015-09-01 19:15:15 -04:00
Christopher Franko
1cfc9ec1e9
ether to expanse
2015-09-01 18:26:59 -04:00
Christopher Franko
9d6221444c
test change lol
2015-09-01 18:24:03 -04:00
Gustav Simonsson
042dcf1b28
Merge pull request #1755 from fjl/coinbase
...
core: improve block gas tracking
(cherry picked from commit e9b031b88b )
2015-09-01 23:41:51 +02:00
Felix Lange
00b45acb9e
core: improve block gas tracking
2015-09-01 23:11:03 +02:00
Maran
67225de255
Filter on addresses should work as an OR not an AND.
2015-09-01 09:19:45 +02:00
Felix Lange
6ec13e7e2b
Merge pull request #1701 from karalabe/eth62-sync-rebase
...
eth: implement eth/62 synchronization logic
2015-08-27 00:03:59 +02:00
Péter Szilágyi
47a7fe5d22
eth: port the synchronisation algo to eth/62
2015-08-25 17:48:47 +03:00
Felix Lange
fd512fa12c
Merge pull request #1711 from Gustav-Simonsson/timestamp_big_int
...
Add tests for uncle timestamps and refactor timestamp type
(cherry picked from commit abce09954b )
2015-08-25 15:54:57 +02:00
Gustav Simonsson
7324176f70
Add tests for uncle timestamps and refactor timestamp type
2015-08-25 04:46:11 +02:00
Jeffrey Wilcke
3793991c0e
remove 0x
2015-08-20 18:50:47 +02:00
Jeffrey Wilcke
b884d6ebaa
canary update
2015-08-20 18:38:21 +02:00
Jeffrey Wilcke
36f7fe61c3
core, tests: Double SUICIDE fix
2015-08-20 18:22:50 +02:00
Jeffrey Wilcke
b4369e1015
core, miner: write miner receipts
2015-08-18 21:46:26 +02:00
Jeffrey Wilcke
9cacec70f9
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
2015-08-11 18:43:22 +02:00
Jeffrey Wilcke
32395ddb89
core/vm: fixed jit error & added inline docs
...
opNumber did not create a new big int which could lead to the block's
number being modified.
2015-08-11 00:16:38 +02:00
Jeffrey Wilcke
2fcf7f1241
Merge pull request #1604 from obscuren/db-merge
...
core, eth, trie, xeth: merged state, chain, extra databases in one
2015-08-09 05:16:37 -07:00
Jeffrey Wilcke
07cb8092e7
Merge pull request #1611 from obscuren/expdiff-olympic-fix
...
cmd/utils, core: disable exp diff for olympic net
2015-08-09 05:15:13 -07:00
Jeffrey Wilcke
eec38c5853
cmd/geth, core/vm: setup vm settings and defaulted JIT disabled
2015-08-09 02:06:16 +02:00
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
2015-08-07 22:29:02 +02:00
Jeffrey Wilcke
ac697326a6
core/vm: reduced big int allocations
...
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.
2015-08-07 12:52:23 +02:00
Jeffrey Wilcke
184e9ae9a8
core, tests: reduced state copy by N calls
...
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
2015-08-07 12:52:23 +02:00