~singpolyma/jmp-pay

ref: 6b4d0a87bf73edfa1fe40868ca915d3152c7ffef jmp-pay/bin/detect_duplicate_addrs -rwxr-xr-x 300 bytes
6b4d0a87Stephen Paul Weber Update rubocop 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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