@ocap/tx-pipeline 1.18.154 → 1.18.156
Sign up to get free protection for your applications and to get access to all the features.
package/lib/pipes/decode-itx.js
CHANGED
@@ -7,6 +7,14 @@ module.exports = function DecodeItx(context, next) {
|
|
7
7
|
const decoded = decodeAny(context.tx.itx);
|
8
8
|
Object.defineProperty(context, 'itx', { value: decoded.value, enumerable: true });
|
9
9
|
Object.defineProperty(context, 'txType', { value: context.tx.itx.typeUrl, enumerable: true });
|
10
|
+
context.logger?.info('Tx decoded', {
|
11
|
+
txBase64: context.txBase64,
|
12
|
+
txHash: context.txHash,
|
13
|
+
txTime: context.txTime,
|
14
|
+
txSize: context.txSize,
|
15
|
+
txType: context.txType,
|
16
|
+
request: context.extra?.request,
|
17
|
+
});
|
10
18
|
} catch (err) {
|
11
19
|
return next(new Error('INVALID_TX', 'Failed to decode itx'));
|
12
20
|
}
|
@@ -23,6 +23,14 @@ module.exports = function CreatedVerifyBlockedPipe({ filter = null, stateKeys =
|
|
23
23
|
for (const suspect of suspects) {
|
24
24
|
const blocked = await f.isBlocked(suspect);
|
25
25
|
if (blocked) {
|
26
|
+
context.logger?.info('Tx blocked', {
|
27
|
+
txBase64: context.txBase64,
|
28
|
+
txHash: context.txHash,
|
29
|
+
txTime: context.txTime,
|
30
|
+
txSize: context.txSize,
|
31
|
+
txSender: suspect,
|
32
|
+
request: context.extra?.request,
|
33
|
+
});
|
26
34
|
return next(new Error('FORBIDDEN', `Account blocked: ${suspect}`));
|
27
35
|
}
|
28
36
|
}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "1.18.
|
6
|
+
"version": "1.18.156",
|
7
7
|
"description": "Pipeline runner and common pipelines to process transactions",
|
8
8
|
"main": "lib/index.js",
|
9
9
|
"files": [
|
@@ -29,16 +29,16 @@
|
|
29
29
|
"elliptic": "6.5.3"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@arcblock/did": "1.18.
|
33
|
-
"@arcblock/did-util": "1.18.
|
34
|
-
"@ocap/mcrypto": "1.18.
|
35
|
-
"@ocap/message": "1.18.
|
36
|
-
"@ocap/state": "1.18.
|
37
|
-
"@ocap/util": "1.18.
|
38
|
-
"@ocap/wallet": "1.18.
|
32
|
+
"@arcblock/did": "1.18.156",
|
33
|
+
"@arcblock/did-util": "1.18.156",
|
34
|
+
"@ocap/mcrypto": "1.18.156",
|
35
|
+
"@ocap/message": "1.18.156",
|
36
|
+
"@ocap/state": "1.18.156",
|
37
|
+
"@ocap/util": "1.18.156",
|
38
|
+
"@ocap/wallet": "1.18.156",
|
39
39
|
"debug": "^4.3.6",
|
40
40
|
"empty-value": "^1.0.1",
|
41
41
|
"lodash": "^4.17.21"
|
42
42
|
},
|
43
|
-
"gitHead": "
|
43
|
+
"gitHead": "955c3e7ae8e06fc037e6591267babaae1623ef23"
|
44
44
|
}
|