1
1
/* This needs to be first */
2
2
#define __STDC_FORMAT_MACROS
3
- #include < inttypes.h>
4
-
5
- #include < sys/types.h> /* These two only needed for sleep() and getpid() */
6
- #include < unistd.h>
7
-
8
- #include < iostream>
9
- #include < sstream>
10
-
11
- #include < grpc++/grpc++.h>
12
3
4
+ #include " contrib/remote_hsmd/dump.hpp"
5
+ #include " contrib/remote_hsmd/proxy.hpp"
6
+ #include " contrib/remote_hsmd/remotesigner.grpc.pb.h"
7
+ #include " contrib/remote_hsmd/remotesigner.pb.h"
13
8
extern " C" {
14
9
#include < bitcoin/chainparams.h>
15
- #include < bitcoin/psbt.h>
16
10
#include < bitcoin/privkey.h>
11
+ #include < bitcoin/psbt.h>
17
12
#include < bitcoin/short_channel_id.h>
18
13
#include < bitcoin/tx.h>
19
14
#include < common/derive_basepoints.h>
@@ -22,15 +17,20 @@ extern "C" {
22
17
#include < common/status.h>
23
18
#include < common/utils.h>
24
19
#include < common/utxo.h>
20
+ }
21
+ #include < grpc++/grpc++.h>
22
+ #include < inttypes.h>
23
+ #include < iostream>
24
+ extern " C" {
25
25
#include < secp256k1_recovery.h>
26
+ }
27
+ #include < sstream>
28
+ #include < sys/types.h> /* These two only needed for sleep() and getpid() */
29
+ #include < unistd.h>
30
+ extern " C" {
26
31
#include < wally_bip32.h>
27
32
}
28
33
29
- #include " contrib/remote_hsmd/remotesigner.pb.h"
30
- #include " contrib/remote_hsmd/remotesigner.grpc.pb.h"
31
-
32
- #include " contrib/remote_hsmd/dump.h"
33
- #include " contrib/remote_hsmd/proxy.h"
34
34
35
35
using std::cerr;
36
36
using std::endl;
@@ -269,7 +269,7 @@ void unmarshal_witnesses(RepeatedPtrField<Witness> const &wits, u8 ****o_wits)
269
269
owits = tal_arrz (tmpctx, u8 **, nwits);
270
270
for (size_t ii = 0 ; ii < nwits; ++ii) {
271
271
owits[ii] = tal_arrz (owits, u8 *, 2 );
272
- Witness const &wit = wits[ii] ;
272
+ Witness const &wit = wits. Get (ii) ;
273
273
const string &sig = wit.signature ().data ();
274
274
const string &pubkey = wit.pubkey ().data ();
275
275
owits[ii][0 ] = tal_arr (owits[ii], u8 , sig.size ());
@@ -915,7 +915,7 @@ proxy_stat proxy_handle_get_channel_basepoints(
915
915
unmarshal_pubkey (bps.delayed_payment (),
916
916
&o_basepoints->delayed_payment );
917
917
unmarshal_pubkey (bps.funding_pubkey (), o_funding_pubkey);
918
- status_debug (" %s:%d %s self_id=%s" ,
918
+ status_debug (" %s:%d %s self_id=%s basepoints=%s pubkey=%s " ,
919
919
__FILE__, __LINE__, __FUNCTION__,
920
920
dump_node_id (&self_id).c_str (),
921
921
dump_basepoints (o_basepoints).c_str (),
0 commit comments