mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
Replace MakeSpan helper with Span deduction guide
This commit is contained in:
@@ -157,13 +157,13 @@ public:
|
||||
//! Get the KeyID of this public key (hash of its serialization)
|
||||
CKeyID GetID() const
|
||||
{
|
||||
return CKeyID(Hash160(MakeSpan(vch).first(size())));
|
||||
return CKeyID(Hash160(Span{vch}.first(size())));
|
||||
}
|
||||
|
||||
//! Get the 256-bit hash of this public key.
|
||||
uint256 GetHash() const
|
||||
{
|
||||
return Hash(MakeSpan(vch).first(size()));
|
||||
return Hash(Span{vch}.first(size()));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user