rescan-addresses

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: CC0-1.0 Imports: 4 Imported by: 0

README

rescan-addresses

rescan-address fixes the issue of not being able to create invoices after an BTCPay Server update.

After updating BTCPay Server, generating an invoice might return an error 500 and leave this in the logs:

# docker logs generated_btcpayserver_1
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Npgsql.PostgresException (0x80004005): 23505: duplicate key value violates unique constraint "PK_AddressInvoices"

BTCPay Server tries to (deterministically) generate a bitcoin address which he had already created in the past.

  1. Rescan the wallet (available in the BTCPay user interface). This will move the cursor to the latest bitcoin address which received a payment.
  2. Run rescan-addresses. It will try to generate invoices until it succeeds, moving the cursor along all bitcoin addresses which had been generated after the latest paid one.

See also btcpayserver/issues/610 and btcpayserver-docker/issues/398, which suggest to backup NBXplorer data before updating BTCPay Server.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL