Skip to content

Commit 13d1e2b

Browse files
committed
fix: add blacklist filter for Lombard addresses
1 parent 64f6b20 commit 13d1e2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/helper/bitcoin-book/fetchers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module.exports = {
115115
lombard: async () => {
116116
const API_URL = 'https://mainnet.prod.lombard.finance/api/v1/addresses'
117117
const BATCH_SIZE = 1000
118+
const blacklisted = new Set(['bc1phz9f27wshtset37f96xl266w9zaq0wdmls749qad2rj3zz4zc8psmgts3w'])
118119

119120
return getConfig('lombard', undefined, {
120121
fetcher: async () => {
@@ -135,7 +136,7 @@ module.exports = {
135136
batchNumber++;
136137
}
137138

138-
return allAddresses;
139+
return allAddresses.filter(i => !blacklisted.has('bc1phz9f27wshtset37f96xl266w9zaq0wdmls749qad2rj3zz4zc8psmgts3w'))
139140
}
140141
})
141142
},

0 commit comments

Comments
 (0)