@ocap/tx-pipeline 1.18.155 → 1.18.157

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.155",
6
+ "version": "1.18.157",
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.155",
33
- "@arcblock/did-util": "1.18.155",
34
- "@ocap/mcrypto": "1.18.155",
35
- "@ocap/message": "1.18.155",
36
- "@ocap/state": "1.18.155",
37
- "@ocap/util": "1.18.155",
38
- "@ocap/wallet": "1.18.155",
32
+ "@arcblock/did": "1.18.157",
33
+ "@arcblock/did-util": "1.18.157",
34
+ "@ocap/mcrypto": "1.18.157",
35
+ "@ocap/message": "1.18.157",
36
+ "@ocap/state": "1.18.157",
37
+ "@ocap/util": "1.18.157",
38
+ "@ocap/wallet": "1.18.157",
39
39
  "debug": "^4.3.6",
40
40
  "empty-value": "^1.0.1",
41
41
  "lodash": "^4.17.21"
42
42
  },
43
- "gitHead": "3d0a23a37564c89d4cf8f374823835efdb6eb24b"
43
+ "gitHead": "df2103bb05ee43fdb6b530e05ce608c574fdd5d6"
44
44
  }