Skip to content

Commit

Permalink
Raise MaxCFilterDataSize to 2 MiB
Browse files Browse the repository at this point in the history
cfilters for blocks near 32 MB can greatly exceed the previous limit.

2 MiB was chosen because it is large enough to relay outlier cfilters
seen on testnet such as 1685010 bytes for block 1326440.

This addresses #378
  • Loading branch information
justusranvier committed Jul 6, 2020
1 parent 6d3aeb7 commit 900986a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wire/msgcfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const (

const (
// MaxCFilterDataSize is the maximum byte size of a committed filter.
// The maximum size is currently defined as 256KiB.
MaxCFilterDataSize = 256 * 1024
// The maximum size is currently defined as 2MiB.
MaxCFilterDataSize = 2 * 1024 * 1024
)

// MsgCFilter implements the Message interface and represents a bitcoin cfilter
Expand Down

0 comments on commit 900986a

Please sign in to comment.