diff --git a/lib/node/http.js b/lib/node/http.js index dc25f8ff..2c9b4dfa 100644 --- a/lib/node/http.js +++ b/lib/node/http.js @@ -339,6 +339,8 @@ class HTTP extends Server { const height = valid.u32('height'); enforce(height != null, 'Height is required.'); + enforce(height <= this.chain.height, + 'Height cannot be greater than chain tip.'); await this.chain.reset(height);