Commit Graph

433 Commits

Author SHA1 Message Date
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 2f3a968136 New CallArgs
Requirements for calls differ from transactions
2015-03-30 16:20:30 +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 391d79ef44 Add ExtraData field to RPC output 2015-03-29 12:08:52 +02: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 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
Kobi Gurkan 47af2f02cb eth_getTransactionCount now returns a hex string 2015-03-27 22:22:13 +03: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
Jeffrey Wilcke 54a14d5c9d Merge pull request #584 from tgerring/issue577
Use ExtraDB for RPC storage. Fixes #577
2015-03-27 11:48:03 +01:00
Jeffrey Wilcke 09280c5f11 Merge pull request #565 from tgerring/responsetypes
Update response types + tests
2015-03-27 11:44:13 +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
obscuren c33dc3e328 moved helper 2015-03-26 12:40:09 +01:00
obscuren 83b0cad766 fixed block filter args 2015-03-26 12:34:59 +01:00
obscuren b8a667deed debug log 2015-03-26 12:15:25 +01:00
obscuren 4ba850639e updated web3.js light for console 2015-03-26 12:15:12 +01:00
Taylor Gerring 9c4504dc41 GetStorageAtArgs 2015-03-26 12:11:28 +01:00
obscuren eb433731aa Fixed filter and refactored code 2015-03-26 12:06:14 +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 e22bcb78a5 Update response types + tests
To coincide with recent type conversion
2015-03-25 16:50:30 +01:00
Jeffrey Wilcke aa1eae67ec Merge pull request #560 from tgerring/xethcleanup
XEth cleanup
2015-03-25 13:55:46 +01:00
Taylor Gerring 2b93843d86 Improve protocol version reporting 2015-03-25 12:09:55 +01:00
obscuren 3301f6ecef back to debug log 2015-03-24 23:55:48 +01:00
obscuren 97bf9f1521 Temp fix for console output 2015-03-24 23:50:27 +01:00
obscuren c38a3b4cc7 Better error reporting in the console. Updated ethereum.js 2015-03-24 17:49:28 +01:00
Taylor Gerring 59b6b619a2 Don't expose backend directly 2015-03-24 16:33:37 +01:00
Taylor Gerring e954c24af0 Implement RPC net_version 2015-03-23 18:06:05 +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
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 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 0846e15667 go away! 2015-03-23 09:36:28 +01:00
Taylor Gerring ab6311c1bd Move remote mining agent to XEth 2015-03-23 09:35:42 +01:00
Taylor Gerring d76e8cb1f1 Consistent var names 2015-03-23 09:24:52 +01:00
Taylor Gerring 16a58f8f2a Always return 3 strings 2015-03-23 08:55:06 +01:00
Taylor Gerring 31879eca8c Stub corrected getWork response 2015-03-23 08:45:09 +01:00
Taylor Gerring 3772f02569 Rename for filename typo 2015-03-23 08:29:41 +01:00
Taylor Gerring 372e1cad5b Cleanup get/submitWork
getWork needs to return additional values
2015-03-23 08:28:54 +01:00
Jeffrey Wilcke 3133372a6a Merge pull request #536 from zsfelfoldi/develop
using robertkrimen/otto, godeps updated
2015-03-22 21:45:56 +01:00
obscuren 8ed4f226d1 check for nil ptrs 2015-03-22 15:44:00 +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 83728e4b64 Merge branch 'develop' into conversion
Conflicts:
	rpc/responses.go
2015-03-21 14:54:25 +01:00
Taylor Gerring 670021da15 Rename topic to topics #544 2015-03-21 07:08:33 +01:00
obscuren 54dac59285 wip 2015-03-20 17:42:09 +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 0cde7a4d46 Add xethAtStateNum convenience method 2015-03-20 14:56:55 +01:00
Taylor Gerring efcc93e7da Move Account register to xeth 2015-03-20 14:12:07 +01:00
Taylor Gerring 739c36ad4d inline GetStorageAt 2015-03-20 13:45:07 +01:00
Taylor Gerring 28e5fc8352 Make pretty 2015-03-20 13:37:56 +01:00
zsfelfoldi 8324b683b4 using robertkrimen/otto, godeps updated 2015-03-20 13:22:01 +01:00
obscuren 41c493ace9 Merge branch 'rpcfrontier' of github.com-obscure:ethereum/go-ethereum into rpcfrontier 2015-03-20 12:07:19 +01:00
obscuren 55fdf3e462 Listen to tx pre event and trigger 'pending' 2015-03-20 12:07:06 +01:00
Taylor Gerring b3329bc698 inline Transact 2015-03-20 07:15:34 +01:00
Taylor Gerring aa3918efa7 Move transact gas check to XEth 2015-03-20 07:13:29 +01:00
Taylor Gerring e038a42d7a inline Call 2015-03-20 06:58:53 +01:00
Taylor Gerring 1d6451f5c3 inline GetBlockByNumber 2015-03-20 06:57:23 +01:00
Taylor Gerring bde161382a inline GetBlockByHash 2015-03-20 06:53:24 +01:00
Taylor Gerring eb45211501 Merge branch 'rpcfrontier' of github.com:ethereum/go-ethereum into rpcfrontier 2015-03-20 06:45:44 +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 c3a3d38735 Add tests for errors 2015-03-20 00:08:29 -04:00
Taylor Gerring 3cea7d87c1 Rename FilterOptions to BlockFilterArgs 2015-03-19 23:55:17 -04:00
Taylor Gerring d791fe4975 Remove unnecessary event mux 2015-03-19 23:34:35 -04:00
Taylor Gerring 19360c0079 Move stateAt func to XEth 2015-03-19 23:28:45 -04:00
Taylor Gerring 6669ef5b70 Rename for clarity 2015-03-19 23:20:54 -04:00
Taylor Gerring 7b45f3377f inline MessagesChanged 2015-03-19 23:14:55 -04:00
Taylor Gerring 2ef2b9f2e0 inline UninstallWhisperFilter 2015-03-19 23:13:52 -04:00
Taylor Gerring 1f9b93647b inline NewWhisperFilter 2015-03-19 23:11:52 -04:00
Taylor Gerring 4b5e592656 inline AllLogs 2015-03-19 23:10:23 -04:00
Taylor Gerring 0bda63eb76 inline Logs 2015-03-19 23:08:26 -04:00
Taylor Gerring d2e7414230 inline FilterChanged 2015-03-19 23:07:25 -04:00
Taylor Gerring 3e9632e256 inline NewFilterString 2015-03-19 23:06:32 -04:00
Taylor Gerring 84b19971fa inline UninstallFilter 2015-03-19 23:05:23 -04:00
Taylor Gerring 4663a55f12 inline NewFilter 2015-03-19 23:03:53 -04:00
Taylor Gerring 7c30716828 Merge branch 'rpcinline' into rpcxeth
Conflicts:
	rpc/api.go
2015-03-19 23:01:10 -04:00
Taylor Gerring 6c04c19eb4 Reorg filter logic to XEth 2015-03-19 22:58:07 -04:00
Taylor Gerring 12d87226a7 Merge branch 'rpcutil' into rpcfrontier 2015-03-19 20:52:36 -04:00
Taylor Gerring cdfc03dc8e inline WhisperPost 2015-03-19 20:40:50 -04:00
Taylor Gerring 0895190b64 inline GetBlockTransactionCountByHash 2015-03-19 20:31:40 -04:00
Taylor Gerring ff657edbb6 inline GetBlockTransactionCountByNumber 2015-03-19 20:30:42 -04:00
Taylor Gerring c57eb286d6 inline GetBlockUncleCountByHash 2015-03-19 20:29:46 -04:00
Taylor Gerring 216175c265 inline GetBlockUncleCountByNumber 2015-03-19 20:28:25 -04:00
Taylor Gerring 7e6c8a411d fixes 2015-03-19 20:26:09 -04:00
Taylor Gerring 22546dcb55 inline UninstallWhisperFilter 2015-03-19 20:14:27 -04:00
Taylor Gerring b28e6d8306 inline WhisperMessages 2015-03-19 20:12:52 -04:00
Taylor Gerring cc91ba0add inline GetTransactionByHash 2015-03-19 20:12:12 -04:00
Taylor Gerring 0eb9572d64 inline RemoveWhisperIdentity 2015-03-19 20:10:05 -04:00
Taylor Gerring 85e03217de inline NewWhisperIdentity 2015-03-19 20:09:54 -04:00
Taylor Gerring 57f6a3b5c0 inline DbGet 2015-03-19 20:06:35 -04:00
Taylor Gerring 6fef616870 inline DbPut 2015-03-19 20:05:48 -04:00
Taylor Gerring d28cd0f040 inline GetCompilers 2015-03-19 20:04:40 -04:00
Taylor Gerring 152b37ee11 inline GetData 2015-03-19 20:04:02 -04:00
Taylor Gerring e530c960a4 inline GetTxCountAt 2015-03-19 20:03:27 -04:00
Taylor Gerring 3aea645106 inline GetStorage 2015-03-19 20:02:31 -04:00
Taylor Gerring 7562bc1dbc inline GetBalance 2015-03-19 20:00:41 -04:00
Taylor Gerring b7745c6835 inline HasWhisperIdentity 2015-03-19 20:00:18 -04:00
Taylor Gerring 6cc02aadbf Inline getStateWithNum 2015-03-19 19:58:59 -04:00
Taylor Gerring abc3d8d50a Make send internal 2015-03-19 18:06:26 -04:00
obscuren 013427bde2 Merge branch 'develop' into conversion 2015-03-19 21:18:29 +01:00
Taylor Gerring c7b616ac14 Remove util 2015-03-19 14:28:31 -04:00
Taylor Gerring 1f2de6ecd5 Remove extra logger 2015-03-19 14:21:42 -04:00
Taylor Gerring d670c861d7 Move Log to LogRes 2015-03-19 14:19:52 -04:00
obscuren 463491f8cd moved back to debug 2015-03-19 16:59:54 +01:00
obscuren b5a71d955c merge 2015-03-19 16:59:13 +01:00