Merge pull request #340 from TheBlueMatt/2019-11-4m-limit

Drop message decode max length to 4_000_000
This commit is contained in:
Andrew Poelstra 2019-11-12 20:42:51 +00:00 committed by GitHub
commit 700ed54efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ impl<R: Read> ReadExt for R {
} }
/// Maximum size, in bytes, of a vector we are allowed to decode /// Maximum size, in bytes, of a vector we are allowed to decode
pub const MAX_VEC_SIZE: usize = 32 * 1024 * 1024; pub const MAX_VEC_SIZE: usize = 4_000_000;
/// Data which can be encoded in a consensus-consistent way /// Data which can be encoded in a consensus-consistent way
pub trait Encodable { pub trait Encodable {