From 1fd764f55a58e14757a1abf56c4bd2858e2ac28a Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 12 Jun 2022 10:05:38 +0200 Subject: [PATCH] Update gRPC files for v.14.3 --- lib/grpc_services/routerrpc/router_pb.rb | 1 + lib/grpc_services/walletrpc/walletkit_pb.rb | 8 ++++++++ .../walletrpc/walletkit_services_pb.rb | 13 +++++++++++++ 3 files changed, 22 insertions(+) diff --git a/lib/grpc_services/routerrpc/router_pb.rb b/lib/grpc_services/routerrpc/router_pb.rb index 246794c..f36fc87 100644 --- a/lib/grpc_services/routerrpc/router_pb.rb +++ b/lib/grpc_services/routerrpc/router_pb.rb @@ -62,6 +62,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do end add_message "routerrpc.XImportMissionControlRequest" do repeated :pairs, :message, 1, "routerrpc.PairHistory" + optional :force, :bool, 2 end add_message "routerrpc.XImportMissionControlResponse" do end diff --git a/lib/grpc_services/walletrpc/walletkit_pb.rb b/lib/grpc_services/walletrpc/walletkit_pb.rb index e3badc2..bca30d3 100644 --- a/lib/grpc_services/walletrpc/walletkit_pb.rb +++ b/lib/grpc_services/walletrpc/walletkit_pb.rb @@ -173,6 +173,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :outpoint, :message, 2, "lnrpc.OutPoint" optional :expiration, :uint64, 3 end + add_message "walletrpc.SignPsbtRequest" do + optional :funded_psbt, :bytes, 1 + end + add_message "walletrpc.SignPsbtResponse" do + optional :signed_psbt, :bytes, 1 + end add_message "walletrpc.FinalizePsbtRequest" do optional :funded_psbt, :bytes, 1 optional :account, :string, 5 @@ -248,6 +254,8 @@ module Walletrpc FundPsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FundPsbtResponse").msgclass TxTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.TxTemplate").msgclass UtxoLease = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.UtxoLease").msgclass + SignPsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SignPsbtRequest").msgclass + SignPsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.SignPsbtResponse").msgclass FinalizePsbtRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtRequest").msgclass FinalizePsbtResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.FinalizePsbtResponse").msgclass ListLeasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("walletrpc.ListLeasesRequest").msgclass diff --git a/lib/grpc_services/walletrpc/walletkit_services_pb.rb b/lib/grpc_services/walletrpc/walletkit_services_pb.rb index cca48d4..88c8338 100644 --- a/lib/grpc_services/walletrpc/walletkit_services_pb.rb +++ b/lib/grpc_services/walletrpc/walletkit_services_pb.rb @@ -169,6 +169,19 @@ module Walletrpc # an error on the caller's side. rpc :FundPsbt, ::Walletrpc::FundPsbtRequest, ::Walletrpc::FundPsbtResponse # + # SignPsbt expects a partial transaction with all inputs and outputs fully + # declared and tries to sign all unsigned inputs that have all required fields + # (UTXO information, BIP32 derivation information, witness or sig scripts) + # set. + # If no error is returned, the PSBT is ready to be given to the next signer or + # to be finalized if lnd was the last signer. + # + # NOTE: This RPC only signs inputs (and only those it can sign), it does not + # perform any other tasks (such as coin selection, UTXO locking or + # input/output/fee value validation, PSBT finalization). Any input that is + # incomplete will be skipped. + rpc :SignPsbt, ::Walletrpc::SignPsbtRequest, ::Walletrpc::SignPsbtResponse + # # FinalizePsbt expects a partial transaction with all inputs and outputs fully # declared and tries to sign all inputs that belong to the wallet. Lnd must be # the last signer of the transaction. That means, if there are any unsigned