You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dash-spv: validate header difficulty against the network-required target #1116
BlockHeaderValidator (dash-spv/src/validation/header.rs) only checks that each hash meets the target declared in its own bits. There is no expected-difficulty (DGW) check, so past the last checkpoint a peer can serve a cheap header chain with minimal bits.
Fix: compute the required target per height and reject headers whose bits don't match it.
Activity
feat(dash-spv)!: validate header difficulty against Dark Gravity Wave
feat(dash-spv)!: validate header difficulty against Dark Gravity Wave