move hashChannelList into common-hash.js

This commit is contained in:
ansuz
2017-04-14 11:40:28 +02:00
parent 63960bd38c
commit f42da4ecd8
3 changed files with 40 additions and 15 deletions

View File

@@ -726,7 +726,7 @@ load pinpad dynamically only after you know that it will be needed */
if (!pinsReady()) { return void cb ('[RPC_NOT_READY]'); }
var list = getCanonicalChannelList();
var local = rpc.hashChannelList(list);
var local = Hash.hashChannelList(list);
rpc.getServerHash(function (e, hash) {
if (e) { return void cb(e); }
cb(void 0, hash === local);