~singpolyma/jmp-pay

ref: 446a4fd31de35f3494c63cd91545dd2bce0a70f3 jmp-pay/bin/detect_duplicate_addrs -rwxr-xr-x 288 bytes
446a4fd3Christopher Vollick Rubocop 2 years 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