identify a false positive for IS_NEW_CHANNEL rpc

This commit is contained in:
ansuz committed 2019-07-23 11:34:23 +02:00
1 parent 9646cbf5db
commit 8644784b03
1 file changed
+2
+2
View File
@@ -1475,6 +1475,8 @@ var removeLoginBlock = function (Env, msg, cb) {
});
};
// FIXME METADATA
// since we're changing how metadata works this can lead to false positives
var isNewChannel = function (Env, channel, cb) {
if (!isValidId(channel)) { return void cb('INVALID_CHAN'); }
if (channel.length !== 32) { return void cb('INVALID_CHAN'); }