This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Enhance cleos to enable new RPC send_transaction #7585
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
With regard to issue #7536, enhance
cleos
so as to enablesend_transaction
, an RPC newly introduced in EOSIOv1.8
.Changes are made to
programs/cleos/main.cpp
andprograms/cleos/httpc.hpp
.Background
v1.8
or after, both RPCsend_transaction
andpush_transaction
are supported.v1.8
, only RPCpush_transaction
is supported.send_transaction
andpush_transaction
are almost the same, except the traces they return, which can be viewed in JSON format by adding a-j
option in the command calling them.Flow Control
push_transaction
by adding a flag--use-old-rpc
.nodeos
version:nodeos
version is betweenv1.0
andv1.7
, call old RPCpush_transaction
;send_transaction
.Test
Have tested behavior such as
create account
,issue
andtransfer
fornodeos
versionv1.8.0
and versionv1.7.4
.Sidenote
In
programs/cleos/main.cpp
there is avoid send_transaction(...)
function, which, according to @arhag in issue #7536, is simply unrelated to this topic. Just ignore it.Consensus Changes
API Changes
Documentation Additions