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 {
2727 @ Setter
2828 private List <String > transactionList = new ArrayList <>();
2929
30+
31+ @ Getter
32+ @ Setter
33+ private String parentHash ;
34+
3035 public BlockLogTrigger () {
3136 setTriggerName (Trigger .BLOCK_TRIGGER_NAME );
3237 }
@@ -45,6 +50,10 @@ public String toString() {
4550 .append (", latestSolidifiedBlockNumber: " )
4651 .append (latestSolidifiedBlockNumber )
4752 .append (", transactionList: " )
48- .append (transactionList ).toString ();
53+ .append (transactionList )
54+ .append (", parentHash: " )
55+ .append (parentHash )
56+ .toString ();
57+
4958 }
5059}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public BlockLogTriggerCapsule(BlockCapsule block) {
2121 block .getTransactions ().forEach (trx ->
2222 blockLogTrigger .getTransactionList ().add (trx .getTransactionId ().toString ())
2323 );
24+ blockLogTrigger .setParentHash (block .getParentHash ().toString ());
2425 }
2526
2627 public void setLatestSolidifiedBlockNumber (long latestSolidifiedBlockNumber ) {
You can’t perform that action at this time.
0 commit comments