mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-27 01:44:30 +01:00
identify node by pubkey
This commit is contained in:
@@ -23,6 +23,10 @@ public record Node(@Nonnull String alias, int lastUpdate, @Nonnull Pubkey pubkey
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Node forPubkey(Pubkey pubkey) {
|
||||
return Node.builder().withPubkey(pubkey).build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return alias;
|
||||
|
||||
Reference in New Issue
Block a user