Add blacklist functionality

This commit is contained in:
Rafael Taranto 2019-04-29 23:14:32 -03:00 committed by Josh Harvey
parent a638524249
commit 4640b4a774
6 changed files with 57 additions and 7 deletions

11
lib/blacklist.js Normal file
View file

@ -0,0 +1,11 @@
const db = require('./db')
function blocked (address, cryptoCode) {
const sql = `select * from blacklist where address = $1 and crypto_code = $2`
return db.oneOrNone(sql, [
address,
cryptoCode
])
}
module.exports = { blocked }