Skip to content

Commit b79b9b4

Browse files
authored
fix: disable faucet endpoints on mainnet (#1425)
1 parent 4a2a342 commit b79b9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export async function startApiServer(opts: {
223223
router.use('/status', createStatusRouter(datastore));
224224
router.use('/fee_rate', createFeeRateRouter(datastore));
225225
router.use('/tokens', createTokenRouter(datastore));
226-
if (writeDatastore) {
226+
if (chainId !== ChainID.Mainnet && writeDatastore) {
227227
router.use('/faucets', createFaucetRouter(writeDatastore));
228228
}
229229
return router;

0 commit comments

Comments
 (0)