mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Remove deprecated -rpcserialversion
This commit is contained in:
parent
d5e5810bd3
commit
fa46cc22bc
14 changed files with 19 additions and 80 deletions
|
|
@ -317,7 +317,7 @@ static bool rest_block(const std::any& context,
|
|||
switch (rf) {
|
||||
case RESTResponseFormat::BINARY: {
|
||||
DataStream ssBlock;
|
||||
ssBlock << RPCTxSerParams(block);
|
||||
ssBlock << TX_WITH_WITNESS(block);
|
||||
std::string binaryBlock = ssBlock.str();
|
||||
req->WriteHeader("Content-Type", "application/octet-stream");
|
||||
req->WriteReply(HTTP_OK, binaryBlock);
|
||||
|
|
@ -326,7 +326,7 @@ static bool rest_block(const std::any& context,
|
|||
|
||||
case RESTResponseFormat::HEX: {
|
||||
DataStream ssBlock;
|
||||
ssBlock << RPCTxSerParams(block);
|
||||
ssBlock << TX_WITH_WITNESS(block);
|
||||
std::string strHex = HexStr(ssBlock) + "\n";
|
||||
req->WriteHeader("Content-Type", "text/plain");
|
||||
req->WriteReply(HTTP_OK, strHex);
|
||||
|
|
@ -723,7 +723,7 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
|
|||
switch (rf) {
|
||||
case RESTResponseFormat::BINARY: {
|
||||
DataStream ssTx;
|
||||
ssTx << RPCTxSerParams(tx);
|
||||
ssTx << TX_WITH_WITNESS(tx);
|
||||
|
||||
std::string binaryTx = ssTx.str();
|
||||
req->WriteHeader("Content-Type", "application/octet-stream");
|
||||
|
|
@ -733,7 +733,7 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
|
|||
|
||||
case RESTResponseFormat::HEX: {
|
||||
DataStream ssTx;
|
||||
ssTx << RPCTxSerParams(tx);
|
||||
ssTx << TX_WITH_WITNESS(tx);
|
||||
|
||||
std::string strHex = HexStr(ssTx) + "\n";
|
||||
req->WriteHeader("Content-Type", "text/plain");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue