mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
[rest] drop superfluous rpc serializations flags for block filters
This commit is contained in:
parent
064abd14a5
commit
3a2464f216
1 changed files with 4 additions and 4 deletions
|
@ -413,7 +413,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
|
||||||
|
|
||||||
switch (rf) {
|
switch (rf) {
|
||||||
case RetFormat::BINARY: {
|
case RetFormat::BINARY: {
|
||||||
CDataStream ssHeader(SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags());
|
CDataStream ssHeader{SER_NETWORK, PROTOCOL_VERSION};
|
||||||
for (const uint256& header : filter_headers) {
|
for (const uint256& header : filter_headers) {
|
||||||
ssHeader << header;
|
ssHeader << header;
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case RetFormat::HEX: {
|
case RetFormat::HEX: {
|
||||||
CDataStream ssHeader(SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags());
|
CDataStream ssHeader{SER_NETWORK, PROTOCOL_VERSION};
|
||||||
for (const uint256& header : filter_headers) {
|
for (const uint256& header : filter_headers) {
|
||||||
ssHeader << header;
|
ssHeader << header;
|
||||||
}
|
}
|
||||||
|
@ -513,7 +513,7 @@ static bool rest_block_filter(const std::any& context, HTTPRequest* req, const s
|
||||||
|
|
||||||
switch (rf) {
|
switch (rf) {
|
||||||
case RetFormat::BINARY: {
|
case RetFormat::BINARY: {
|
||||||
CDataStream ssResp(SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags());
|
CDataStream ssResp{SER_NETWORK, PROTOCOL_VERSION};
|
||||||
ssResp << filter;
|
ssResp << filter;
|
||||||
|
|
||||||
std::string binaryResp = ssResp.str();
|
std::string binaryResp = ssResp.str();
|
||||||
|
@ -522,7 +522,7 @@ static bool rest_block_filter(const std::any& context, HTTPRequest* req, const s
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case RetFormat::HEX: {
|
case RetFormat::HEX: {
|
||||||
CDataStream ssResp(SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags());
|
CDataStream ssResp{SER_NETWORK, PROTOCOL_VERSION};
|
||||||
ssResp << filter;
|
ssResp << filter;
|
||||||
|
|
||||||
std::string strHex = HexStr(ssResp) + "\n";
|
std::string strHex = HexStr(ssResp) + "\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue