lib/extensions/bitcoin/wallet/base.rb in bitcoinrb-grpc-0.1.0 vs lib/extensions/bitcoin/wallet/base.rb in bitcoinrb-grpc-0.1.1

- old
+ new

@@ -35,9 +35,14 @@ account = find_account(account_name) return [] unless account utxo_db.list_unspent_assets_in_account(asset_type, asset_id, account, current_block_height: current_block_height, min: min, max: max) end + def close + db.close + utxo_db.close + end + private def initialize(wallet_id, path_prefix) @path = "#{path_prefix}wallet#{wallet_id}/" @db = Bitcoin::Wallet::DB.new(@path)