Skip to content

Commit 098f1ca

Browse files
committed
update bitcoind to 30.0. pin loopd protofiles to released version.
1 parent aad4230 commit 098f1ca

File tree

4 files changed

+7
-46
lines changed

4 files changed

+7
-46
lines changed

Docker/bitcoin/30.0/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
FROM debian:stable-slim
22

33
ARG BITCOIN_VERSION="30.0"
4-
ENV PATH=/opt/bitcoin-30.0rc2/bin:$PATH
4+
ENV PATH=/opt/bitcoin-30.0/bin:$PATH
55

66
RUN apt-get update -y \
77
&& apt-get install -y curl gosu \
88
&& apt-get clean \
99
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1010

1111
RUN SYS_ARCH="$(uname -m)" \
12-
&& curl -SLO https://bitcoincore.org/bin/bitcoin-core-30.0/test.rc2/bitcoin-30.0rc2-${SYS_ARCH}-linux-gnu.tar.gz \
12+
&& curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${SYS_ARCH}-linux-gnu.tar.gz \
1313
&& tar -xzf *.tar.gz -C /opt \
1414
&& rm *.tar.gz
1515

LNUnit.LND/Grpc/looprpc/client.proto

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,7 @@ message OutTermsResponse {
775775

776776
message QuoteRequest {
777777
/*
778-
The amount to swap in satoshis. In the loop-in case this can either be taken
779-
from the connected lnd wallet or coin-selected from static address deposits.
780-
This is controlled by the select_deposits flag. If deposit_outpoints are
781-
specified, the coins are taken out of that.
778+
The amount to swap in satoshis.
782779
*/
783780
int64 amt = 1;
784781

@@ -826,9 +823,8 @@ message QuoteRequest {
826823

827824
/*
828825
Static address deposit outpoints that will be quoted for. This option only
829-
pertains to loop in swaps. If the amt field is set as well the respective
830-
partial amount will be swapped. Cannot be used in conjunction with
831-
auto_select_deposits.
826+
pertains to loop in swaps. Either this or the amt parameter can be set at
827+
the same time.
832828
*/
833829
repeated string deposit_outpoints = 8;
834830

@@ -837,14 +833,6 @@ message QuoteRequest {
837833
be returned in the specified asset.
838834
*/
839835
AssetLoopOutRequest asset_info = 9;
840-
841-
/*
842-
In the legacy loop-in case this field must be set to false.
843-
If set to true, the swap amount will be automatically selected from the
844-
static address deposits. If set to true, deposit_outpoints must be empty.
845-
This option only pertains to loop in swaps.
846-
*/
847-
bool auto_select_deposits = 10;
848836
}
849837

850838
message InQuoteResponse {
@@ -1922,12 +1910,6 @@ message Deposit {
19221910
loop-in swap anymore.
19231911
*/
19241912
int64 blocks_until_expiry = 6;
1925-
1926-
/*
1927-
The swap hash of the swap that this deposit is part of. This field is only
1928-
set if the deposit is part of a loop-in swap.
1929-
*/
1930-
bytes swap_hash = 7;
19311913
}
19321914

19331915
message StaticAddressWithdrawal {
@@ -1989,11 +1971,6 @@ message StaticAddressLoopInSwap {
19891971
fees.
19901972
*/
19911973
int64 payment_request_amount_satoshis = 5;
1992-
1993-
/*
1994-
The deposits that were used for this swap.
1995-
*/
1996-
repeated Deposit deposits = 6;
19971974
}
19981975

19991976
enum StaticAddressLoopInSwapState {
@@ -2101,21 +2078,6 @@ message StaticAddressLoopInRequest {
21012078
side and the client can retry the swap with different parameters.
21022079
*/
21032080
uint32 payment_timeout_seconds = 8;
2104-
2105-
/*
2106-
The optional swap amount the client is attempting to swap. It can be
2107-
provided in combination with the outpoints or separately. If provided with
2108-
outpoints the client takes out this amount from the sum of provided
2109-
outpoints and sends the change back to the static address. If the amount is
2110-
provided without outpoints, the client will select deposits automatically.
2111-
The coin selection strategy is simplified by sorting all available deposits
2112-
in descending order by amount, and equal amounts in ascending order of
2113-
blocks until expiry, and then selecting the largest deposits first until the
2114-
amount is reached. The change will be sent back to the static address. If a
2115-
subset of outpoints suffice to cover the specified amount the swap will be
2116-
canceled to allow the user to safe on transaction fees.
2117-
*/
2118-
int64 amount = 9;
21192081
}
21202082

21212083
message StaticAddressLoopInResponse {

LNUnit.LND/update-protofiles.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mkdir -p ./Grpc/looprpc
1616
mkdir -p ./Grpc/swapserverrpc
1717

1818
LND_TAG=${1:-v0.20.0-beta.rc1}
19-
LOOP_TAG=${2:-master}
19+
LOOP_TAG=${2:-v0.31.2-beta}
2020

2121

2222
wget -O ./Grpc/lightning.proto https://raw.githubusercontent.com/lightningnetwork/lnd/$LND_TAG/lnrpc/lightning.proto

LNUnit.Tests/LNUnit.Tests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
<!-- <PackageReference Include="Serilog.Sinks.AwsCloudWatch" Version="4.0.182"/>-->
4242
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
4343
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
44-
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.9" />
45-
<PackageReference Include="System.Text.Json" Version="9.0.9" />
44+
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.9" />
4645
</ItemGroup>
4746

4847
<ItemGroup>

0 commit comments

Comments
 (0)