Skip to content

Commit

Permalink
new rpc Getblocktemplatelight and submitblocklight.
Browse files Browse the repository at this point in the history
gbtlight will not send transactions, only merklebranch
gbtlight will save transactions in localfile (filename is [job_id])
submitblocklight receive [job_id] and read localfile
  • Loading branch information
ganibc committed May 11, 2018
1 parent e1fa952 commit e87774c
Show file tree
Hide file tree
Showing 5 changed files with 640 additions and 60 deletions.
5 changes: 5 additions & 0 deletions src/rpc/client.cpp
Expand Up @@ -63,6 +63,7 @@ static const CRPCConvertParam vRPCConvertParams[] = {
{"listaccounts", 1, "include_watchonly"},
{"walletpassphrase", 1, "timeout"},
{"getblocktemplate", 0, "template_request"},
{"getblocktemplatelight", 0, "template_request"},
{"listsinceblock", 1, "target_confirmations"},
{"listsinceblock", 2, "include_watchonly"},
{"sendmany", 1, "amounts"},
Expand Down Expand Up @@ -126,6 +127,10 @@ static const CRPCConvertParam vRPCConvertParams[] = {
{"echojson", 7, "arg7"},
{"echojson", 8, "arg8"},
{"echojson", 9, "arg9"},
#ifdef ENABLE_WALLET
{"fillmempool", 0, "outputcount"},
#endif

};

class CRPCConvertTable {
Expand Down

0 comments on commit e87774c

Please sign in to comment.