Skip to content

Commit 9f6ae27

Browse files
committed
fix(mu): from proc fix
1 parent 7f30ad6 commit 9f6ae27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

servers/mu/src/domain/lib/write-message-tx.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ export function writeMessageTxWith (env) {
3535

3636
return of()
3737
.chain(() => {
38+
const tagsVal = ctx.dataItem?.tags || ctx?.cachedMsg?.msg?.Tags || []
39+
if (
40+
tagsVal.find(
41+
(t) =>
42+
t.name === 'From-Process' &&
43+
t.value === 'fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY'
44+
)
45+
) {
46+
return Rejected(new Error('Invalid From-Process value.', { cause: ctx }))
47+
}
3848
if (RELAY_MAP && Object.keys(RELAY_MAP).includes(ctx.tx.processId)) {
3949
if (ctx.cachedMsg?.msg?.Tags?.find((t) => t.name === 'Action' && t.value === 'Credit-Notice')) {
4050
const sender = ctx.cachedMsg?.msg?.Tags?.find((t) => t.name === 'Sender')?.value

0 commit comments

Comments
 (0)