@spirobel/monero-wallet-api 0.6.7 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -231,7 +231,9 @@ export function outputStatus(output, cache, current_height) {
231
231
  return { status: "spent" };
232
232
  }
233
233
  const unlock_height = unlockedAtHeight(output);
234
- if (unlock_height > current_height) {
234
+ // current_height is the top block index. monerod compares against the
235
+ // block count (top index + 1), the height the spending tx would land in.
236
+ if (unlock_height > current_height + 1) {
235
237
  return { status: "pending", unlock_height };
236
238
  }
237
239
  return { status: "spendable" };