bump, add field to know if replaced

This commit is contained in:
nicolas.dorier
2018-01-10 18:40:53 +09:00
parent a33e20b46b
commit 983f34814f
4 changed files with 6 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework> <TargetFramework>netcoreapp2.0</TargetFramework>
<Version>1.0.0.62</Version> <Version>1.0.0.63</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Remove="Build\dockerfiles\**" /> <Compile Remove="Build\dockerfiles\**" />

View File

@@ -86,6 +86,7 @@ namespace BTCPayServer.Controllers
m.TransactionId = payment.Outpoint.Hash.ToString(); m.TransactionId = payment.Outpoint.Hash.ToString();
m.ReceivedTime = payment.ReceivedTime; m.ReceivedTime = payment.ReceivedTime;
m.TransactionLink = string.Format(paymentNetwork.BlockExplorerLink, m.TransactionId); m.TransactionLink = string.Format(paymentNetwork.BlockExplorerLink, m.TransactionId);
m.Replaced = !payment.Accounted;
return m; return m;
}) })
.ToArray(); .ToArray();

View File

@@ -48,6 +48,8 @@ namespace BTCPayServer.Models.InvoicingModels
get; get;
set; set;
} }
public bool Replaced { get; set; }
} }
public string StatusMessage public string StatusMessage

View File

@@ -178,6 +178,7 @@
<th>Deposit address</th> <th>Deposit address</th>
<th>Transaction Id</th> <th>Transaction Id</th>
<th>Confirmations</th> <th>Confirmations</th>
<th>Replaced</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -189,6 +190,7 @@
<td>@payment.DepositAddress</td> <td>@payment.DepositAddress</td>
<td><a href="@payment.TransactionLink" target="_blank">@payment.TransactionId</a></td> <td><a href="@payment.TransactionLink" target="_blank">@payment.TransactionId</a></td>
<td>@payment.Confirmations</td> <td>@payment.Confirmations</td>
<td>@payment.Replaced</td>
</tr> </tr>
} }
</tbody> </tbody>