Merge pull request #596 from tuxcanfly/fix-addr-gethash-2

pool: watchAddress continue to accept addr string
This commit is contained in:
Javed Khan 2018-08-30 22:39:38 +05:30 committed by GitHub
commit 91db3a55ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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