mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
Remove deprecated -rpcserialversion
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user