Feat/improve fee history performance (#5182)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Nil Medvedev
2023-11-27 10:59:27 +00:00
committed by GitHub
parent 57653b1a58
commit 563a683a62
18 changed files with 490 additions and 124 deletions

View File

@ -252,7 +252,7 @@ impl SharedCapability {
/// Returns an error if the offset is equal or less than [`MAX_RESERVED_MESSAGE_ID`].
pub(crate) fn new(name: &str, version: u8, offset: u8) -> Result<Self, SharedCapabilityError> {
if offset <= MAX_RESERVED_MESSAGE_ID {
return Err(SharedCapabilityError::ReservedMessageIdOffset(offset));
return Err(SharedCapabilityError::ReservedMessageIdOffset(offset))
}
match name {