Jeffrey Wilcke
f7a71996fb
core, event/filter, xeth: refactored filter system
...
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".
9 years ago
Jeffrey Wilcke
b9359981f4
xeth: fixed nil pointer of filter retrieval
...
This fix addresses an issue with filters that were (possibly) not yet
added to the filter queues but were expected. I've added additional nil
checks making sure it doesn't crash and swapped the installation of the
filter around so it's installed before use.
Closes #1665
9 years ago
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
9 years ago
Jeffrey Wilcke
1c3ca3ce6a
xeth: max gas limit
9 years ago
Jeffrey Wilcke
7bb5ac045e
xeth: added a transact mu
...
Added a transact mutex. The transact mutex will fix an issue where
transactions were created with the same nonce resulting in some
transactions being dropped. This happened when two concurrent calls
would call the `Transact` method (which is OK) which would both call
`GetNonce`. While the managed is thread safe it does not help us in this
case.
9 years ago
Bas van Kervel
f9cbd16f27
support for user agents
9 years ago
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
9 years ago
Jeffrey Wilcke
b6c5b3b4a7
xeth: fixed contract addr check
9 years ago
Jeffrey Wilcke
cf7cef4293
xeth: added address hex check and length check
9 years ago
Bas van Kervel
81e2124ea2
improved error detection and handling for NewTransactionFromBytes
...
integrated review comments
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Jeffrey Wilcke
8fc9830971
cmd/core,xeth: removed unneeded states & added batch writes
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Péter Szilágyi
3642441ca3
xeth: fix #1485 , data race in fiilter creation and event firing
9 years ago
Jeffrey Wilcke
b1d0d3c0ed
xeth: removed unneeded mutex lock
9 years ago
Gustav Simonsson
afba798357
xeth: log signed tx hash
9 years ago
Jeffrey Wilcke
819ecd4508
miner, xeth: fire log event during mining. Fix return raw tx
9 years ago
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
zelig
1208ac83d5
fix natspec test
...
* registar url string retrieval chop leading zeros now
* rewrite test using test mining
* remove temporary applyTxs from xeth
9 years ago
Jeffrey Wilcke
35cd355c14
cmd,eth,rpc,tests: default coinbase
9 years ago
Jeffrey Wilcke
4f7fc7b23f
rpc, xeth: fixed returned tx hash & receipt logs
9 years ago
Felix Lange
ec9620fb2f
core/types, xeth: separate tx hash and tx signature hash
9 years ago
Taylor Gerring
dd521ece3f
Always return transaction hash
9 years ago
Taylor Gerring
cd4cc309ae
Remove redundant function
9 years ago
Taylor Gerring
481b221279
Decode full receipt storage
9 years ago
Jeffrey Wilcke
2feb23c1da
core, eth, miner, xeth: receipt storage fix
...
* Added GetReceiptsFromBlock, GetReceipt, PutReceipts
* Added ContractAddress to receipt. See #1042
9 years ago
Jeffrey Wilcke
29e2fb38f8
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
9 years ago
zelig
eb82ca4563
rpc/js coinbase returns null if no etherbase set
9 years ago
Jeffrey Wilcke
529fb7a7d7
core, xeth: core.AddressFromMessage removed => crypto.CreateAddress
9 years ago
Felix Lange
1d42888d30
core/types: make blocks immutable
9 years ago
Felix Lange
654564e164
core/types: make transactions immutable
9 years ago
obscuren
07c3de3f75
core, miner, xeth: renamed gas methods
...
* BuyGas => SubGas
* RefundGas => AddGas
* SetGasPool => SetGasLimit
10 years ago
obscuren
a977f3c0dc
xeth, tests: fixed api
10 years ago
SilentCicero
1f34daccc3
Added glog messages like Transaction
10 years ago
SilentCicero
6add45cd10
Remove Extra Loggers
10 years ago
SilentCicero
7ec8c257ff
New DataArgs and eth_sendRawTransaction
10 years ago
zsfelfoldi
610adfd83f
fixed xeth.gpo = nil bug
10 years ago
zsfelfoldi
3f94d09c1f
fixed saving receipts
10 years ago
obscuren
bc6031e7bb
core, xeth: moved nonce management burden from xeth to txpool
10 years ago
Taylor Gerring
c8a9a4e76d
Differentiate between 0 and unspecified gas/gasprice
10 years ago
obscuren
36c0db2ac9
xeth: use the correct nonce for creating transactions
10 years ago
obscuren
d09a6e5421
core, eth, miner: moved nonce management to tx pool.
...
Removed the managed tx state from the chain manager to the transaction
pool where it's much easier to keep track of nonces (and manage them).
The transaction pool now also uses the queue and pending txs differently
where queued txs are now moved over to the pending queue (i.e. txs ready
for processing and propagation).
10 years ago
Bas van Kervel
a61e6788db
prefix dapp key/value entries in extradb
10 years ago
obscuren
ff1630834c
xeth: removed `Value`
10 years ago
zsfelfoldi
00ec4132f8
Storing tx receipts in extraDb
10 years ago
zelig
b0ae84aa0d
multiple contract source for solidity compiler: returns contract array if multiple contracts. fixes #1023
10 years ago
zelig
22b694ee1e
solc now in ethereum, fixes solc path setting; setSolc() didnt work
10 years ago
obscuren
b7baceefda
xeth: remove nonce on error. Fixes #1026
10 years ago
Taylor Gerring
54b5c8273d
XEth comment clarification
10 years ago