Skip to content

Commit 0f5c37e

Browse files
authored
SignCounterpartyHtlcToUs -> SignCounterpartyHtlcSweep SignJusticeTxToUs -> SignJusticeSweep SignDelayedPaymentToUs -> SignDelayedSweep (#20)
1 parent 6cd9843 commit 0f5c37e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/remote_hsmd/proxy.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ proxy_stat proxy_handle_sign_delayed_payment_to_us(
12091209
);
12101210

12111211
last_message = "";
1212-
SignDelayedPaymentToUsRequest req;
1212+
SignDelayedSweepRequest req;
12131213
marshal_node_id(&self_id, req.mutable_node_id());
12141214
marshal_channel_nonce(peer_id, dbid, req.mutable_channel_nonce());
12151215
req.set_input(0);
@@ -1218,7 +1218,7 @@ proxy_stat proxy_handle_sign_delayed_payment_to_us(
12181218

12191219
ClientContext context;
12201220
SignatureReply rsp;
1221-
Status status = stub->SignDelayedPaymentToUs(&context, req, &rsp);
1221+
Status status = stub->SignDelayedSweep(&context, req, &rsp);
12221222
if (status.ok()) {
12231223
unmarshal_bitcoin_signature(rsp.signature(), o_sig);
12241224
STATUS_DEBUG("%s:%d %s { \"self_id\":%s, \"sig\":%s }",
@@ -1257,7 +1257,7 @@ proxy_stat proxy_handle_sign_remote_htlc_to_us(
12571257
);
12581258

12591259
last_message = "";
1260-
SignCounterpartyHTLCToUsRequest req;
1260+
SignCounterpartyHTLCSweepRequest req;
12611261
marshal_node_id(&self_id, req.mutable_node_id());
12621262
marshal_channel_nonce(peer_id, dbid, req.mutable_channel_nonce());
12631263
req.set_input(0);
@@ -1267,7 +1267,7 @@ proxy_stat proxy_handle_sign_remote_htlc_to_us(
12671267

12681268
ClientContext context;
12691269
SignatureReply rsp;
1270-
Status status = stub->SignCounterpartyHTLCToUs(&context, req, &rsp);
1270+
Status status = stub->SignCounterpartyHTLCSweep(&context, req, &rsp);
12711271
if (status.ok()) {
12721272
unmarshal_bitcoin_signature(rsp.signature(), o_sig);
12731273
STATUS_DEBUG("%s:%d %s { \"self_id\":%s, \"sig\":%s }",
@@ -1309,7 +1309,7 @@ proxy_stat proxy_handle_sign_penalty_to_us(
13091309
);
13101310

13111311
last_message = "";
1312-
SignJusticeTxToUsRequest req;
1312+
SignJusticeSweepRequest req;
13131313
marshal_node_id(&self_id, req.mutable_node_id());
13141314
marshal_channel_nonce(peer_id, dbid, req.mutable_channel_nonce());
13151315
marshal_secret(revocation_secret, req.mutable_revocation_secret());
@@ -1318,7 +1318,7 @@ proxy_stat proxy_handle_sign_penalty_to_us(
13181318

13191319
ClientContext context;
13201320
SignatureReply rsp;
1321-
Status status = stub->SignJusticeTxToUs(&context, req, &rsp);
1321+
Status status = stub->SignJusticeSweep(&context, req, &rsp);
13221322
if (status.ok()) {
13231323
unmarshal_bitcoin_signature(rsp.signature(), o_sig);
13241324
STATUS_DEBUG("%s:%d %s { \"self_id\":%s, \"sig\":%s }",

0 commit comments

Comments
 (0)