mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 14:22:44 +01:00
Projected blocks API should accept "txId" as query parameter.
This commit is contained in:
parent
32623988ab
commit
b561137962
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ class Routes {
|
|||
public async getProjectedBlocks(req, res) {
|
||||
try {
|
||||
let txId: string | undefined;
|
||||
if (req.params.txId && /^[a-fA-F0-9]{64}$/.test(req.param.txId)) {
|
||||
txId = req.params.txId;
|
||||
if (req.query.txId && /^[a-fA-F0-9]{64}$/.test(req.query.txId)) {
|
||||
txId = req.query.txId;
|
||||
}
|
||||
const result = await projectedBlocks.getProjectedBlocks(txId, 6);
|
||||
res.send(result);
|
||||
|
|
Loading…
Add table
Reference in a new issue