pool: watchAddress continue to accept addr string

This commit is contained in:
Javed Khan 2018-08-29 23:18:28 +05:30
parent 1bde15b9a2
commit f01e2fb626
No known key found for this signature in database
GPG Key ID: 7E31745B904584E6

View File

@ -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);
}