use latest chainpad-server

This commit is contained in:
ansuz
2020-02-04 11:15:44 -05:00
parent 46dfa026f0
commit f8f3a48e8b
3 changed files with 6 additions and 7 deletions

View File

@@ -747,7 +747,7 @@ module.exports.create = function (cfg, cb) {
// TODO compute lastKnownHash in a manner such that it will always skip past the metadata line?
getHistoryAsync(channelName, lastKnownHash, false, (msg, readMore) => {
if (!msg) { return; }
if (!msg) { return; } // XXX
msgCount++;
// avoid sending the metadata message a second time
if (isMetadataMessage(msg) && metadata_cache[channelName]) { return readMore(); }