satyakoneru
3738830d76
GRPH-4 CLI Wallet Crash Fix
2019-09-09 14:30:25 +00:00
pbattu
00efb88ac7
fc changes to support ubuntu-18.04 upgrade
2019-05-21 18:42:14 -03:00
Vikram Rajkumar
0e2b783168
Merge remote-tracking branch 'steem/13-jsonrpc-improvements'
2017-05-21 14:37:31 -05:00
Michael Vandeberg
fa63cd799f
Responses contain jsonrpc field and increased readability of errors #13
2017-04-10 11:12:24 -04:00
Vikram Rajkumar
1f41494f36
Merge branch 'master' of github.com:steemit/fc
2017-03-18 11:38:57 -05:00
Michael Vandeberg
7144cdc20b
Actually log methods and params #9
2017-01-27 12:07:50 -05:00
elmato
dd36202e74
Replace the call to get_api_by_name with a direct call to the functions that return fc::api<> in the login_api.
...
If the call to any of this functions succeed (because they where previously enabled),
the api will auto-register itself in the websocket_api_connection/http_api_connection and will return an api_id_type.
2017-01-27 06:03:36 +00:00
Michael Vandeberg
c1a0dca92f
Refactor to use cmake build options #9
2017-01-25 11:16:52 -05:00
Michael Vandeberg
0688b7eb64
Time execution of rpc API call and log long executing calls. #9
2017-01-25 10:16:02 -05:00
Vikram Rajkumar
9d383077fa
Revert "change json seralization of map<string,T> to be object rather than array of pairs"
...
This reverts commit a421e28048 .
2017-01-13 13:35:48 -06:00
theoreticalbts
cfc53e8b82
Wrap non-FC exceptions thrown by client methods
2016-12-07 15:27:09 -05:00
Daniel Larimer
e8e26838cc
first step toward binary RPC
2016-07-30 18:41:03 -04:00
theoreticalbts
5c1bb56177
Implement modular API support
...
- Create class `api_base` to be base class of `api<T>`, and `typedef shared_ptr<api_base> api_ptr`
- Create function `api_base::as<T>()` to allow simple downcast to `api<T>`
- Create class `any_api` to contain an API which has been returned from the remote end, but not yet cast with `as<T>`
- `to_generic()` override allowing remote API to return `api_ptr`, thus we need not know the type of the returned API at compile time
- Allow API's to be referenced by name, if we call with a string API name in the JSON the framework calls get_api_by_name on API 1 to determine the API ID
2016-04-04 00:50:56 -04:00
Daniel Larimer
a421e28048
change json seralization of map<string,T> to be object rather than array of pairs
2016-03-17 17:24:25 -04:00
Daniel Larimer
6495004302
move potential yields outside of catch
2015-10-09 17:08:03 -04:00
Daniel Larimer
d19f67d94f
prevent yielding from catch block
2015-09-14 11:14:52 -04:00
Eric Frias
a31f0f503d
Fix compile error when readline not available
2015-07-27 12:08:28 -04:00
Daniel Larimer
e9eeb3300c
adding tab completion to CLI
2015-07-27 09:11:20 -04:00
theoreticalbts
7bd47af88e
rpc: Move many method implementations from headers to cpp files
2015-06-30 15:54:29 -04:00
Daniel Larimer
a3c284408e
make CLI prompt configurable
2015-05-18 13:40:01 -04:00
Daniel Larimer
3599850bb9
Merge commit '72288a2'
2015-05-04 14:07:51 -04:00
Daniel Larimer
72288a25b1
making sure getline doesn't blog
2015-05-04 14:07:22 -04:00
Eric Frias
e9824e1740
Add missing include for isatty on win32
2015-05-04 13:36:15 -04:00
theoreticalbts
80de0987d7
Add readline support to fc::rpc::cli
2015-04-29 16:37:54 -04:00
Daniel Larimer
c8200afade
better close notification and error handling
2015-04-01 10:25:57 -04:00
Daniel Larimer
55ee57040a
added support for unhandled extension and mapping the first registered API to global namespace
2015-03-31 17:45:01 -04:00
Daniel Larimer
1fb31737a7
RPC now supports remote callbacks
...
to_variant now skips null optional members on reflected objects.
2015-03-31 11:31:56 -04:00
Daniel Larimer
b8d7d3012d
abstracting rpc state
2015-03-26 18:17:47 -04:00
Nathan Hourt
de2000795d
Fix crashes when destroying json_connection, tcp_socket
...
Also, create on_close callback on json_connection, so clients can
know when the connection has failed.
2015-02-12 10:54:18 -05:00
Nathan Hourt
13430fce12
Revert "Dumb hack that seems to prevent crashing when destroying json_connection"
...
This reverts commit b068865eb5 .
Caused crashes elsewhere.
2015-02-11 17:20:58 -05:00
Nathan Hourt
b068865eb5
Dumb hack that seems to prevent crashing when destroying json_connection
2015-02-10 18:35:50 -05:00
Nathan Hourt
ac197311ca
json_connection: save and cancel a future
...
Hopefully this will fix a crash on exit.
2015-01-30 10:23:33 -05:00
theoretical
d963c6482a
Protect flush() with lock in json_connection.cpp
...
- Maybe fixes https://github.com/BitShares/bitshares/issues/1323
2015-01-29 12:55:34 -05:00
Daniel Larimer
e6b43a6149
adding support for 10 arg rpc calls
2014-11-10 18:29:05 -05:00
Nathan Hourt
c1eca45ef1
More fixes in json_connection
2014-10-20 12:52:47 -04:00
Nathan Hourt
502a3c653c
Fix yield in catch block
2014-10-17 13:43:40 -04:00
Eric Frias
ac385d1f6b
Allow the user to supply a reason string when canceling a task (useful for debugging)
2014-08-27 14:07:44 -04:00
Eric Frias
d847f6469a
Allow us to require assigning descriptions to all async tasks to aid in debugging
2014-07-27 17:37:21 -04:00
dnotestein
9e320a3db8
Add descriptions for a bunch of async tasks, remove logging during thread::quit to avoid crashes for now until we cleanup thread quit code
2014-07-27 00:09:15 -04:00
Daniel Larimer
ace06d775c
support for 8 param rpc calls
2014-07-04 17:23:47 -04:00
Daniel Larimer
17117bc6bf
adding support for 7 arg rpc calls
2014-06-06 22:46:28 -04:00
Eric Frias
7dde0a705d
Add 5 and 6 argument versions of json rpc call functions
2014-05-29 15:54:40 -04:00
Eric Frias
b8a7531eab
Fix error message printed when unable to deserialize a json object, improve
...
logging of return values and add logging of exceptional returns from
json function calls. Continue my endless quest to break the mac build.
2014-05-06 17:20:04 -04:00
dnotestein
7672754c51
add some minor comments
2014-04-26 18:02:31 -04:00
Eric Frias
cd34f696ce
- Add four-argument version of json-rpc call function
...
- fix bug in json parser that prevented correct parsing of
a true/false/null at the end of input
- prevent infinite recursion in a json helper function
2014-04-21 14:34:46 -04:00
Daniel Larimer
a68d22a699
various updates
2013-12-09 00:48:28 -05:00
Daniel Larimer
e1e3a7361b
added flexability to json parsing and fixed closing hang in json rpc connection
2013-11-24 22:23:29 -05:00
dnotestein
94ce5cd9f2
more windows related changes, check what I was thinking with that BOOST1_51 when not in a hurry, maybe it should just be removed now
2013-08-10 22:11:59 -04:00
Daniel Larimer
59a121d64b
Updating FC with changes from phoenix-int
2013-06-05 15:19:00 -04:00