11/* This needs to be first */
22#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>
123
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"
138extern " C" {
149#include < bitcoin/chainparams.h>
15- #include < bitcoin/psbt.h>
1610#include < bitcoin/privkey.h>
11+ #include < bitcoin/psbt.h>
1712#include < bitcoin/short_channel_id.h>
1813#include < bitcoin/tx.h>
1914#include < common/derive_basepoints.h>
@@ -22,15 +17,20 @@ extern "C" {
2217#include < common/status.h>
2318#include < common/utils.h>
2419#include < common/utxo.h>
20+ }
21+ #include < grpc++/grpc++.h>
22+ #include < inttypes.h>
23+ #include < iostream>
24+ extern " C" {
2525#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" {
2631#include < wally_bip32.h>
2732}
2833
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"
3434
3535using std::cerr;
3636using std::endl;
@@ -269,7 +269,7 @@ void unmarshal_witnesses(RepeatedPtrField<Witness> const &wits, u8 ****o_wits)
269269 owits = tal_arrz (tmpctx, u8 **, nwits);
270270 for (size_t ii = 0 ; ii < nwits; ++ii) {
271271 owits[ii] = tal_arrz (owits, u8 *, 2 );
272- Witness const &wit = wits[ii] ;
272+ Witness const &wit = wits. Get (ii) ;
273273 const string &sig = wit.signature ().data ();
274274 const string &pubkey = wit.pubkey ().data ();
275275 owits[ii][0 ] = tal_arr (owits[ii], u8 , sig.size ());
@@ -915,7 +915,7 @@ proxy_stat proxy_handle_get_channel_basepoints(
915915 unmarshal_pubkey (bps.delayed_payment (),
916916 &o_basepoints->delayed_payment );
917917 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 " ,
919919 __FILE__, __LINE__, __FUNCTION__,
920920 dump_node_id (&self_id).c_str (),
921921 dump_basepoints (o_basepoints).c_str (),
0 commit comments