obscuren
1e28b424e7
Default gas
2015-04-02 14:00:49 +02:00
obscuren
55b1c1546b
Moved to function
2015-04-02 13:55:35 +02:00
Taylor Gerring
118ad22ee5
Merge branch 'develop' into rpcfabian
2015-04-02 13:39:46 +02:00
Taylor Gerring
81de8ed091
Format code as hexdata
2015-04-02 13:38:12 +02:00
obscuren
0f3bf7ef4d
Fixes for balance
2015-04-02 12:57:04 +02:00
obscuren
4391c38215
Changed getters on account objects. Closes #610
...
* GetCode
* GetNonce
* GetStorage
* GetBalance
2015-04-01 23:22:16 +02:00
Taylor Gerring
101ea1a1e8
Make inner size before assinging. Closes #615
2015-04-01 14:15:20 +02:00
Jeffrey Wilcke
936ddf2ad1
Merge pull request #616 from bas-vk/develop
...
Frontier/513
2015-04-01 13:25:15 +02:00
Bas van Kervel
1559bd9e1b
changed big.Int instantiation
2015-04-01 13:15:21 +02:00
Bas van Kervel
6605d00d92
Frontier/513
2015-04-01 12:33:12 +02:00
Taylor Gerring
86ba7432a9
txMeta storage as struct
2015-04-01 12:14:35 +02:00
Taylor Gerring
40ea466200
Store and retrieve tx context metadata #608
...
Improving this in the future will allow for cleaning up a bit of legacy
code.
2015-03-31 22:40:12 +02:00
Taylor Gerring
43d521e90e
Decouple core from rpc
2015-03-27 16:36:01 +01:00
Taylor Gerring
0ac346f707
Merge branch 'develop' into rpcargs
2015-03-27 16:03:49 +01:00
Jeffrey Wilcke
0b4b2b81f9
Merge pull request #580 from ethersphere/frontier/cli-key
...
settable etherbase
2015-03-27 12:12:05 +01:00
Taylor Gerring
2788fb4ce5
More explicit formatting for protocol version
2015-03-27 11:43:14 +01:00
Taylor Gerring
e29396b691
Use ExtraDB for storage. Fixes #577
2015-03-27 09:36:18 +01:00
zelig
b375bbee5f
settable etherbase
...
- etherbase flag for block reward destination
- coinbase => etherbase
- CLI- eth Config -> eth, xeth -> RPC / Miner
- use primary instead of coinbase as the unlock magic wildcard
- accounts: firstAddr/Coinbase -> Primary
2015-03-26 21:52:22 +00:00
Taylor Gerring
2c5a32ebbc
Undo XEth changes
2015-03-26 22:24:48 +01:00
Taylor Gerring
c7dc379da5
GetBlockByHashArgs
2015-03-26 10:14:52 +01:00
Taylor Gerring
7e1e264375
Don't return empty block for "pending" #568
2015-03-26 09:24:07 +01:00
obscuren
7e4c488717
Fixed storage. Closes #516
2015-03-26 00:42:35 +01:00
Taylor Gerring
2b93843d86
Improve protocol version reporting
2015-03-25 12:09:55 +01:00
Taylor Gerring
d41341f77d
WithState -> withState
2015-03-24 17:58:16 +01:00
Taylor Gerring
82b5a8af49
DRY up height logic
2015-03-24 17:49:37 +01:00
Taylor Gerring
865f31018b
Shuffle
2015-03-24 17:45:31 +01:00
Taylor Gerring
2106a63d60
Move Frontend interface to separate file
2015-03-24 16:42:33 +01:00
Taylor Gerring
65d553d367
Update internal calls to use CurrentBlock()
2015-03-24 16:34:28 +01:00
Taylor Gerring
59b6b619a2
Don't expose backend directly
2015-03-24 16:33:37 +01:00
Taylor Gerring
b9b7442b74
Remove redundant fields
2015-03-24 16:08:18 +01:00
Taylor Gerring
ad420d099a
rename eth to backend
2015-03-24 16:01:44 +01:00
Taylor Gerring
6d41402dce
Backend no longer needed to resolve import cycle
2015-03-24 15:36:39 +01:00
Taylor Gerring
e954c24af0
Implement RPC net_version
2015-03-23 18:06:05 +01:00
obscuren
0330077d76
moved state and vm to core
2015-03-23 16:59:09 +01:00
Taylor Gerring
5707912e2f
"pending" convention should be -2 instead of 0
2015-03-23 16:36:12 +01:00
Taylor Gerring
91a2275ad3
Move RemoteAgent to miner pkg
2015-03-23 11:21:41 +01:00
Taylor Gerring
439481d177
Rename Agent to RemoteAgent
2015-03-23 11:14:42 +01:00
Taylor Gerring
ab6311c1bd
Move remote mining agent to XEth
2015-03-23 09:35:42 +01:00
obscuren
82956df523
Get work / submit work partially implemented.
...
* WIP missing arguments for submitting new work
* GetWork **done**
2015-03-22 15:38:01 +01:00
obscuren
ce862ee758
Removed some comments
2015-03-21 14:51:45 +01:00
obscuren
a59bb053f4
merge
2015-03-20 16:02:01 +01:00
Taylor Gerring
28e1971272
Merge branch 'rpcxeth' into rpcfrontier
...
Conflicts:
rpc/api.go
2015-03-20 15:25:43 +01:00
Taylor Gerring
efcc93e7da
Move Account register to xeth
2015-03-20 14:12:07 +01:00
Taylor Gerring
aa3918efa7
Move transact gas check to XEth
2015-03-20 07:13:29 +01:00
Taylor Gerring
b56e20be27
Reorg for clarity
2015-03-20 00:24:23 -04:00
Taylor Gerring
754160afea
Move gas defaults to XEth
2015-03-20 00:23:48 -04:00
Taylor Gerring
19360c0079
Move stateAt func to XEth
2015-03-19 23:28:45 -04:00
Taylor Gerring
6c04c19eb4
Reorg filter logic to XEth
2015-03-19 22:58:07 -04:00
obscuren
f9a6038f5b
merge
2015-03-18 18:23:37 +01:00
obscuren
0a1eeca41e
conversions. -compilable-
2015-03-18 13:00:01 +01:00
Maran
7330c97b5b
DRY up the use of toHex in the project and move it to common
2015-03-16 16:56:11 +01:00
obscuren
b523441361
Moved ethutil => common
2015-03-16 11:27:38 +01:00
Maran
991993357c
DRY up the use of fromHex and put it in ethutil
2015-03-14 11:39:35 +01:00
obscuren
b663e8b29a
Merge branch 'rpcfrontier' into develop
2015-03-13 16:36:27 +01:00
obscuren
f1fcda4f2f
Implemented managed state
...
* Reimplemented nonce management for known accounts.
2015-03-13 16:29:04 +01:00
obscuren
cda88ce31a
Implemented a manage state for keeping track of nonces
2015-03-13 14:37:54 +01:00
Taylor Gerring
d4ed66c83d
Add web3_clientVersion
2015-03-12 19:20:46 -05:00
obscuren
2273155e7e
Get transaction implemented
...
* Added a GetTransaction to XEth
* Implemented the `eth_getTransactionByHash` RPC method
2015-03-12 15:59:07 +01:00
Felix Lange
d7b5a87b3b
miner: provide coinbase when starting the miner
...
This avoids having to query the coinbase when creating the miner, which
in turn eliminates the dreaded startup error when no accounts are set
up. Later, this will also allow us to simply restart the miner when the
user picks a different coinbase.
This causes a lot of changes in other packages. These are included in
this commit because they're impossible to separate.
2015-03-11 23:43:27 +01:00
obscuren
c01d4c2f4c
Lowered default gas price and increased default gas limit
2015-03-11 17:36:35 +01:00
obscuren
e8d1b622d9
Default block number changes
2015-03-11 17:00:20 +01:00
obscuren
7e0ccc9de5
Merge branch 'develop' into rpcfrontier
...
Conflicts:
rpc/api.go
rpc/args.go
2015-03-11 01:08:42 +01:00
Taylor Gerring
3d6519e45b
Update response types
2015-03-10 12:52:45 -05:00
Felix Lange
0f67f1e9de
xeth: fix signing transaction after unlock
2015-03-10 14:55:00 +01:00
Felix Lange
395da0e7c1
xeth: use Frontend interface to unlock accounts
...
The interface has moved to package xeth because that's where it is
actually used.
2015-03-10 02:00:06 +01:00
Felix Lange
9bf513e993
Merge ethereum/poc-9 into accounts-integration
...
Conflicts:
cmd/utils/cmd.go
cmd/utils/flags.go
core/manager.go
eth/backend.go
rpc/http/server.go
xeth/xeth.go
2015-03-09 23:25:46 +01:00
Felix Lange
b4fa94c4b1
xeth: don't sign transactions for tx call
...
This should make calls faster and removes interaction
with account manager.
2015-03-09 23:08:46 +01:00
obscuren
8560004f38
wip
2015-03-09 17:55:01 +01:00
Taylor Gerring
9723191b19
Undo client_version changes
2015-03-09 11:04:38 -05:00
obscuren
738d6e20f2
Added ui.Interface to xeth
2015-03-09 13:49:14 +01:00
Felix Lange
fb53a9362e
accounts: AccountManager -> Manager
2015-03-08 01:58:35 +01:00
Felix Lange
fda7b4c79d
accounts: use pointers consistently
...
Account is now always a non-pointer. This will be important once
the manager starts remembering accounts.
AccountManager is now always a pointer because it contains locks
and locks cannot be copied.
2015-03-08 00:18:13 +01:00
Felix Lange
d66f93cecd
accounts, core, eth, xeth: use account manager for everything
...
The account manager is now responsible for picking the
default account and the coinbase.
2015-03-07 12:38:33 +01:00
obscuren
cd856cb213
Separated block db from state db. Partial fix for #416
2015-03-06 18:26:16 +01:00
Taylor Gerring
dc7022cd61
Increased args test coverage
2015-03-06 09:54:08 -06:00
Gustav Simonsson
bc45e5c6de
Integrate eth_accounts and eth_transact to use new account manager
...
* Add from to eth_transact / xeth.Transact and add static pass in lieu
of integrating with native Mist window for user passphrase entry
* Make eth_accounts return AccountManager.Accounts()
* Add a Generate Key menu item in Mist
2015-03-06 13:10:42 +00:00
Taylor Gerring
ef9d825cfa
Refactor & cleanup
2015-03-05 21:37:45 -06:00
Taylor Gerring
c92e48ce3f
Add client_version RPC message
2015-03-04 07:54:10 -06:00
obscuren
ac88ae86a3
GetOrNew for accessors. Fixes #404
2015-03-01 19:07:38 +01:00
obscuren
5ab0eaa06d
wip
2015-02-26 11:14:54 +01:00
obscuren
b2a225a52e
Properly uninstall filters. Mining issue fixed #closes #365
...
* Added an additional tx state which is used to get the current nonce
* Refresh transient state each time a new canonical block is found
* Properly uninstall filters. Fixes a possible crash in RPC
2015-02-23 15:43:41 +01:00
obscuren
483d96a89d
Added eth_logs & fixed issue with manual log filtering
...
* Implemented `eth_logs`
* Fixed issue with `filter.Find()` where logs were appended to an
incorrect, non-returned slice resulting in no logs found
2015-02-22 13:12:01 +01:00
obscuren
75625801f5
fixed merge
2015-02-20 15:18:07 +01:00
obscuren
ea9a549bbd
Removed exported fields from state object and added proper set/getters
2015-02-20 14:19:34 +01:00
obscuren
fa4cbad315
Optimisations and fixed a couple of DDOS issues in the miner
2015-02-19 22:33:22 +01:00
Taylor Gerring
a59cd94625
Add setMining RPC method
2015-02-19 18:58:15 +01:00
obscuren
7fc9b5b3f9
Changed to ChainEvent and fixed a nil pointer in transact
2015-02-17 22:20:47 +01:00
obscuren
8135752a32
"centralised" mining to backend. Closes #323
2015-02-17 12:24:58 +01:00
obscuren
76fa75b394
wip
2015-02-13 15:35:54 +01:00
obscuren
38faf2c51a
removed messages
2015-02-12 17:06:15 +01:00
Felix Lange
56f777b2fc
cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p API
2015-02-06 00:03:59 +01:00
obscuren
d52878c744
Removed some VMEnv & Added VmType() to vm.Environment
2015-02-01 15:29:57 +01:00
obscuren
c03d403437
Added whisper interface for xeth, added examples, updated RPC
...
* Added RPC methods for whisper
* Added whisper example
2015-01-30 13:25:12 +01:00
obscuren
6488a392a3
Reimplemented message filters for rpc calls
2015-01-29 16:52:00 +01:00
obscuren
84adf77bf3
Added RPC "Call" for JS calls to contracts
2015-01-29 13:10:34 +01:00
obscuren
cebb149f5c
removed key while in the process of moving to the new key storage
2015-01-28 20:50:09 +01:00
obscuren
872b249711
further cleaned up xeth interface
2015-01-28 18:36:23 +01:00
obscuren
1146f25015
clean up of xeth
2015-01-28 18:25:50 +01:00
obscuren
7f638f0b2d
moving to a better xeth
2015-01-28 18:14:28 +01:00
obscuren
fed3e6a808
Refactored ethutil.Config.Db out
2015-01-07 13:17:48 +01:00
obscuren
c1dee15144
BlockManager => BlockProcessor
2015-01-05 00:18:44 +01:00