File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
common/src/main/java/org/tron/common/logsfilter/trigger
framework/src/main/java/org/tron/common/logsfilter/capsule Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ public class BlockLogTrigger extends Trigger {
27
27
@ Setter
28
28
private List <String > transactionList = new ArrayList <>();
29
29
30
+
31
+ @ Getter
32
+ @ Setter
33
+ private String parentHash ;
34
+
30
35
public BlockLogTrigger () {
31
36
setTriggerName (Trigger .BLOCK_TRIGGER_NAME );
32
37
}
@@ -45,6 +50,10 @@ public String toString() {
45
50
.append (", latestSolidifiedBlockNumber: " )
46
51
.append (latestSolidifiedBlockNumber )
47
52
.append (", transactionList: " )
48
- .append (transactionList ).toString ();
53
+ .append (transactionList )
54
+ .append (", parentHash: " )
55
+ .append (parentHash )
56
+ .toString ();
57
+
49
58
}
50
59
}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public BlockLogTriggerCapsule(BlockCapsule block) {
21
21
block .getTransactions ().forEach (trx ->
22
22
blockLogTrigger .getTransactionList ().add (trx .getTransactionId ().toString ())
23
23
);
24
+ blockLogTrigger .setParentHash (block .getParentHash ().toString ());
24
25
}
25
26
26
27
public void setLatestSolidifiedBlockNumber (long latestSolidifiedBlockNumber ) {
You can’t perform that action at this time.
0 commit comments