Skip to content

Commit 02b197c

Browse files
Eosis0xc0170
authored andcommitted
Removing the appending of the method name to an RPC call (#1593)
The RPC call appended the method name to the output after the method had already finished processing. It was unexpected for my use case, and doesn't feel like the obvious thing to do. This could be appended in the RPC method itself, instead. The adding of the method to the output was first commited in commit 556b889.
1 parent f28131a commit 02b197c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libraries/rpc/rpc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ bool RPC::call(const char *request, char *reply) {
148148
for (; cur_method->name != NULL; cur_method++) {
149149
if (strcmp(cur_method->name, args.method_name) == 0) {
150150
(cur_method->method_caller)(p, &args, &r);
151-
r.putData<const char*>(cur_method->name);
152151
return true;
153152
}
154153
}

0 commit comments

Comments
 (0)