Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: all program ids of a transaction are now searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed May 11, 2019
1 parent 9574b93 commit 387729a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/inbound-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,18 +243,18 @@ class RedisHandler {
commands.push(['sadd', `!ent-txn:${message.hash}`, tx.id]);
commands.push(['lpush', '!txn-timeline', txnMsg]);

if (tx.instructions.length > 0) {
tx.instructions.forEach(instruction => {
commands.push([
'lpush',
`!txns-by-prgid-timeline:${tx.instructions[0].program_id}`,
`!txns-by-prgid-timeline:${instruction.program_id}`,
txnMsg,
]);
commands.push([
'publish',
`@program_id:${tx.instructions[0].program_id}`,
`@program_id:${instruction.program_id}`,
txnMsg,
]);
}
});
});

if (txCount > 0) {
Expand Down

0 comments on commit 387729a

Please sign in to comment.