Skip to content

Commit

Permalink
refactor: use string_view
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta authored and UdjinM6 committed Dec 19, 2023
1 parent e60ebaa commit ad101ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/llmq/chainlocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ CChainLockSig CChainLocksHandler::GetBestChainLock() const
return bestChainLock;
}

void CChainLocksHandler::ProcessMessage(const CNode& pfrom, const std::string& msg_type, CDataStream& vRecv)
void CChainLocksHandler::ProcessMessage(const CNode& pfrom, std::string_view msg_type, CDataStream& vRecv)
{
if (!AreChainLocksEnabled(spork_manager)) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/chainlocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CChainLocksHandler : public CRecoveredSigsListener
bool GetChainLockByHash(const uint256& hash, CChainLockSig& ret) const LOCKS_EXCLUDED(cs);
CChainLockSig GetBestChainLock() const LOCKS_EXCLUDED(cs);

void ProcessMessage(const CNode& pfrom, const std::string& msg_type, CDataStream& vRecv);
void ProcessMessage(const CNode& pfrom, std::string_view msg_type, CDataStream& vRecv);
void ProcessNewChainLock(NodeId from, const CChainLockSig& clsig, const uint256& hash) LOCKS_EXCLUDED(cs);
void AcceptedBlockHeader(gsl::not_null<const CBlockIndex*> pindexNew) LOCKS_EXCLUDED(cs);
void UpdatedBlockTip();
Expand Down

0 comments on commit ad101ca

Please sign in to comment.