~singpolyma/jmp-pay

ref: 83664427fe574d6f736e0f83043b228ba600396b jmp-pay/bin/detect_duplicate_addrs -rwxr-xr-x 288 bytes
83664427Stephen Paul Weber Merge branch 'guix' 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/ruby
# frozen_string_literal: true

require "redis"
require_relative "../lib/redis_addresses"

redis = Redis.new

get_addresses_with_users(redis).each do |addr, keys|
	if keys.length > 1
		puts "#{addr} is used by the following #{keys.length} keys: #{keys.join(' ')}"
	end
end