mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
Merge pull request #4537 from stacks-network/fix/expected-size-debug
fix: correct deserialization size check
This commit is contained in:
@@ -559,7 +559,7 @@ impl Value {
|
||||
}
|
||||
};
|
||||
|
||||
if expect_size as u64 > bytes_read {
|
||||
if bytes_read > expect_size as u64 {
|
||||
// this can happen due to sanitization, so its no longer indicative of a *problem* with the node.
|
||||
debug!(
|
||||
"Deserialized more bytes than expected size during deserialization. Expected size = {}, bytes read = {}, type = {}",
|
||||
|
||||
Reference in New Issue
Block a user