UNPKG

@samouraiwallet/one-dollar-fee-estimator

Version:

A script estimating the minimum feerate required for the inclusion of a bitcoin transaction into the next block.

16 lines 329 B
export class RingBuffer { constructor(sizeMax) { this.max = sizeMax; this.data = []; } push(x) { if (this.data.length === this.max) { this.data.shift(); } this.data.push(x); } get() { return this.data; } } //# sourceMappingURL=ring-buffer.js.map