We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f30ad6 commit 9f6ae27Copy full SHA for 9f6ae27
servers/mu/src/domain/lib/write-message-tx.js
@@ -35,6 +35,16 @@ export function writeMessageTxWith (env) {
35
36
return of()
37
.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
+ }
48
if (RELAY_MAP && Object.keys(RELAY_MAP).includes(ctx.tx.processId)) {
49
if (ctx.cachedMsg?.msg?.Tags?.find((t) => t.name === 'Action' && t.value === 'Credit-Notice')) {
50
const sender = ctx.cachedMsg?.msg?.Tags?.find((t) => t.name === 'Sender')?.value
0 commit comments