From f01e2fb626191fafe5221320f587bddb9a79f779 Mon Sep 17 00:00:00 2001 From: Javed Khan Date: Wed, 29 Aug 2018 23:18:28 +0530 Subject: [PATCH] pool: watchAddress continue to accept addr string --- lib/net/pool.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/net/pool.js b/lib/net/pool.js index a73ac121..5f46891a 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -3151,6 +3151,9 @@ class Pool extends EventEmitter { */ watchAddress(address) { + if (typeof address === 'string') + address = Address.fromString(address); + const hash = Address.getHash(address); this.watch(hash); }