identify a false positive for IS_NEW_CHANNEL rpc

pull/1/head
ansuz 2019-07-23 11:34:23 +02:00
parent 9646cbf5db
commit 8644784b03
1 changed files with 2 additions and 0 deletions

2
rpc.js
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'); }