Skip to content

Commit

Permalink
Update bad node
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Sep 12, 2024
1 parent ce4edd3 commit d64bf07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ public class BadNode {
@Column(name = "public_key")
private String publicKey;

private String name;

private Integer cycle;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,7 @@ public void updateNodeState() {
if (badActor == 1 && badActorBefore == 0) {
BadNode badNode = new BadNode();
badNode.setPublicKey(publicKey);
badNode.setName(entity.getName());
badNode.setCycle(currentCycle);
badNodeMapper.insertSelective(badNode);
}
Expand Down

0 comments on commit d64bf07

Please sign in to comment.