Payout Destination Handling (#2985)

* Payout Destination Handling

fixes #2765
This PR:
* reactivates the BIP21 support for payouts.
* allows LNUrl destinations to be reusable.
* allows addresses to be reused in claims as long as the other claims are in a final state

* Ensure bolt amount matches the payout amount

* fixes

* reduce duplicate parsing of bolt

* make hash the id of bolt

* better bolt11 tostring

* use cached payment request from lnurl
This commit is contained in:
Andrew Camilleri
2021-10-21 17:43:02 +02:00
committed by GitHub
parent a193e1cbf3
commit db038723f4
15 changed files with 152 additions and 45 deletions

View File

@@ -15,7 +15,7 @@ namespace BTCPayServer.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.4");
.HasAnnotation("ProductVersion", "3.1.19");
modelBuilder.Entity("BTCPayServer.Data.APIKeyData", b =>
{
@@ -527,13 +527,12 @@ namespace BTCPayServer.Migrations
b.HasKey("Id");
b.HasIndex("Destination")
.IsUnique();
b.HasIndex("PullPaymentDataId");
b.HasIndex("State");
b.HasIndex("Destination", "State");
b.ToTable("Payouts");
});