Commit Graph
100 Commits
Author SHA1 Message Date
Taylor Gerring 101ea1a1e8 Make inner size before assinging. Closes #615 2015-04-01 14:15:20 +02:00
Taylor Gerring dbf17105f6 Build transaction context in BlockRes 2015-04-01 13:18:51 +02:00
Taylor Gerring 88f2a96ca3 Set fullTx option in constructor 2015-04-01 13:18:30 +02:00
Taylor Gerring 02fb83782e #612 rename eth_protocol method 2015-04-01 12:28:48 +02:00
Taylor Gerring 86ba7432a9 txMeta storage as struct 2015-04-01 12:14:35 +02:00
Taylor Gerring b860b67693 Remove extra type assetion 2015-04-01 11:45:29 +02:00
Taylor Gerring 7b7392826d Improved response tests
Actually verifies output as by regex
2015-04-01 11:38:06 +02:00
Taylor Gerring 25998cfc45 Re-enabled response tests (needs improvement) 2015-04-01 09:11:23 +02:00
Taylor Gerring bbca6250ff Merge branch 'rpccall' into hexify 2015-03-31 22:40:52 +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 7e3875b527 Remove custom MarshalJSON methods
Now formats based on underlying hexdata or hexnum type. Fields directly
with respective constructors that cover from native types
2015-03-31 19:04:02 +02:00
Taylor Gerring a2501ecfcd Make new types Stringers 2015-03-31 19:02:46 +02:00
Taylor Gerring 8f0e095f4c Index is zero-based #607 2015-03-31 17:56:06 +02:00
Taylor Gerring 81aeb78976 Update output types to use hexnum or hexdata
Benefits from automatic output formatting differences between
quantities and data
2015-03-31 17:40:35 +02:00
Taylor Gerring 3a948b2dba Add hexdata and hexnum types 2015-03-31 17:39:58 +02:00
Taylor Gerring 6daa455243 Update Go bootnode address 2015-03-31 14:14:29 +02:00
Taylor Gerring 2f3a968136 New CallArgs
Requirements for calls differ from transactions
2015-03-30 16:20:30 +02:00
Taylor Gerring f23529c5cd General repo cleanup 2015-03-30 09:18:22 +02:00
Taylor Gerring 35d00e00c5 Update Godeps 2015-03-29 22:19:38 +02:00
Taylor Gerring b6fde73ef1 Add settable domain to CORS handler #331 2015-03-29 21:56:04 +02:00
Taylor Gerring 04a7c4ae1e Abstract http into rpc package
New RpcConfig object to pass growing config
2015-03-29 21:26:47 +02:00
Taylor Gerring 24fc1f073d Add flag to control CORS header #394
* Disabled on CLI
* http://localhost on Mist
2015-03-29 21:21:14 +02:00
Taylor Gerring 391d79ef44 Add ExtraData field to RPC output 2015-03-29 12:08:52 +02:00
Taylor Gerring eb79938060 Docker rename ethereum to geth 2015-03-28 22:17:08 +01:00
Taylor Gerring 2ca6a800ad Remove old go cover location 2015-03-28 22:16:04 +01:00
Taylor Gerring 82eeb5e02a Added Coveralls badges 2015-03-28 22:04:36 +01:00
Taylor Gerring 129fabddb2 Prefer hex prefixed with 0x 2015-03-28 21:47:16 +01:00
Taylor Gerring d9f8b1e0c1 Report InvalidTypeError as -32602 to JSON RPC 2015-03-28 21:42:44 +01:00
Taylor Gerring e80ef9ff34 Cleanup 2015-03-28 21:41:34 +01:00
Taylor Gerring 29930da522 eth_getStorageAt output hex should begin with 0x 2015-03-28 21:27:50 +01:00
Taylor Gerring 3b20603eb1 Merge branch 'kobigurk-develop' into develop 2015-03-28 21:06:39 +01:00
Taylor Gerring 779a51c047 Merge branch 'develop' of https://github.com/kobigurk/go-ethereum into kobigurk-develop
Conflicts:
	rpc/api.go
2015-03-28 21:05:32 +01:00
Taylor Gerring a4cbd1c7be ethereum -> geth 2015-03-28 00:32:23 +01: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
Taylor Gerring 9f84c78eb5 BlockFilterArgs 2015-03-27 15:54:54 +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
Taylor Gerring c38630af23 Test blockHeightFromJsonInvalid 2015-03-27 00:13:03 +01:00
Taylor Gerring e0781c2548 NewTxArgs accept numbers or strings for value/gas/gasprice 2015-03-27 00:07:28 +01:00
Taylor Gerring 3fcef54f9b tidy 2015-03-26 22:58:12 +01:00
Taylor Gerring 6bd1f6cc49 Merge remote-tracking branch 'origin' into rpcargs
Conflicts:
	rpc/args.go
2015-03-26 22:42:46 +01:00
Taylor Gerring bb12dbe233 Prefer args as strings not objects 2015-03-26 22:35:42 +01:00
Taylor Gerring 7eed7e1d96 Merge branch 'rpcargs' of github.com:tgerring/go-ethereum into rpcargs 2015-03-26 22:27:06 +01:00
Taylor Gerring 2c5a32ebbc Undo XEth changes 2015-03-26 22:24:48 +01:00
Taylor Gerring 49a912ce33 Undo xeth changes 2015-03-26 22:14:31 +01:00
Taylor Gerring 1f3814141b WhisperMessageArgs 2015-03-26 21:07:50 +01:00
Taylor Gerring 9ca87afd0b WhisperFilterArgs 2015-03-26 20:52:09 +01:00
Taylor Gerring 81f36df910 CompileArgs 2015-03-26 20:31:00 +01:00
Taylor Gerring ddcc8e1673 SubmitWorkArgs tests 2015-03-26 20:25:30 +01:00
Taylor Gerring b414a1303f WhisperIdentityArgs 2015-03-26 20:20:43 +01:00
Taylor Gerring 1f1e98f96b FilterIdArgs 2015-03-26 20:10:31 +01:00
Taylor Gerring 62ebf999bf FilterStringArgs tests 2015-03-26 20:04:03 +01:00
Taylor Gerring e21ce9a9b4 DbHexArgs tests 2015-03-26 19:39:40 +01:00
Taylor Gerring f68ca2b6e6 DbArgs tests 2015-03-26 19:34:32 +01:00
Taylor Gerring 3ab9f26943 Accept number or string for BlockFilterArgs limit/offset 2015-03-26 19:17:25 +01:00
Taylor Gerring 6661bc35ef Accept number or string for BlockFilterArgs to/fromBlock 2015-03-26 17:27:29 +01:00
Taylor Gerring 745dd5b7a5 Sha3Args 2015-03-26 16:19:33 +01:00
Taylor Gerring f695d01354 Convert error checks to Expect functions 2015-03-26 16:16:17 +01:00
Taylor Gerring 3472823be9 HashIndexArgs 2015-03-26 14:17:32 +01:00
Taylor Gerring cb103c089a BlockNumIndexArgs 2015-03-26 13:57:41 +01:00
Taylor Gerring cd6b3fd28a GetDataArgs 2015-03-26 13:50:22 +01:00
Taylor Gerring a49c81547c DecodeParamError -> InvalidTypeError for unexpected input type 2015-03-26 13:45:06 +01:00
Taylor Gerring ca03e97697 Add InvalidTypeError 2015-03-26 13:33:44 +01:00
Taylor Gerring c139af5826 GetBalanceArgs 2015-03-26 13:10:31 +01:00
Taylor Gerring 4523a00b91 GetTxCountArgs 2015-03-26 12:47:00 +01:00
Taylor Gerring 9c4504dc41 GetStorageAtArgs 2015-03-26 12:11:28 +01:00
Taylor Gerring 300d36b864 improved NewTxArgs tests 2015-03-26 11:59:35 +01:00
Taylor Gerring ad2089b0a3 Add blockHeightFromJson convenience function 2015-03-26 11:59:16 +01:00
Taylor Gerring 493e0d7be8 improved GetBlockByNumber tests 2015-03-26 11:07:14 +01:00
Taylor Gerring 93af30a6f6 improved GetBlockByHashArgs tests 2015-03-26 11:06:45 +01:00
Taylor Gerring bd1a54f076 GetStorageArgs 2015-03-26 10:52:32 +01:00
Taylor Gerring 966cfa4bdd NewTxArgs 2015-03-26 10:34:21 +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
Taylor Gerring e22bcb78a5 Update response types + tests
To coincide with recent type conversion
2015-03-25 16:50:30 +01:00
Taylor Gerring 2b93843d86 Improve protocol version reporting 2015-03-25 12:09:55 +01:00
Taylor Gerring c956bcb13c Move version to const and expose via Version() 2015-03-25 12:08:48 +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 e88a29ad02 Merge pull request #553 from ethersphere/jsonlog
natspec: minor fix in test
2015-03-23 18:57:57 +01:00
Taylor Gerring 90c710fd26 Merge pull request #552 from ethersphere/jsonlog
Jsonlog
2015-03-23 18:27:06 +01:00
Taylor Gerring e954c24af0 Implement RPC net_version 2015-03-23 18:06:05 +01:00
Taylor Gerring 60020add74 Merge pull request #551 from ethersphere/frontier/eth-version-exports
eth: fix protocol version/network id copied from config to Ethereum field
2015-03-23 18:00:54 +01:00
Taylor Gerring 1cf6ca8f10 Add Close() method to EthereumApi
To close the handler for LDB
2015-03-23 17:41:50 +01:00
Taylor Gerring 1e61b75cbf tests + fixes 2015-03-23 17:33:01 +01:00
Taylor Gerring 5707912e2f "pending" convention should be -2 instead of 0 2015-03-23 16:36:12 +01:00
Taylor Gerring 2f8601ef38 Rename blockAge to blockHeight 2015-03-23 16:34:50 +01:00
Taylor Gerring 3f6e1b2fd3 db_putHex/db_getHex + tests 2015-03-23 16:04:21 +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 01c0ba22ae Add DAG seed hash and difficulty to GetWork 2015-03-23 11:09:48 +01:00
Taylor Gerring 0846e15667 go away! 2015-03-23 09:36:28 +01:00