lib/bitcoin/grpc/server.rb in bitcoinrb-grpc-0.1.8 vs lib/bitcoin/grpc/server.rb in bitcoinrb-grpc-0.1.9

- old
+ new

@@ -118,9 +118,17 @@ Bitcoin::Grpc::Api::ListUncoloredUnspent.new(spv).execute(request) rescue => e logger.error("list_uncolored_unspent: #{e.message}") logger.error("list_uncolored_unspent: #{e.backtrace}") end + + def get_balance(request, _call) + logger.info("get_balance: #{request}") + Bitcoin::Grpc::Api::GetBalance.new(spv).execute(request) + rescue => e + logger.error("get_balance: #{e.message}") + logger.error("get_balance: #{e.backtrace}") + end end class EventsReceiver < Concurrent::Actor::Context attr_reader :events, :logger, :publisher