Skip to content

Commit

Permalink
Adding javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Sep 13, 2022
1 parent 044d466 commit c89ab7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rskj-core/src/main/java/org/ethereum/core/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,14 @@ public ECKey getKey() {
return key;
}

/**
* Returns sender's Address
* <p>
* Usage of this method should be avoided in favor of getSender(SignatureCache signatureCache)
* as it tries to get the data from the cache first, improving performance.
*
* @return RskAddress the sender's Address
*/
public synchronized RskAddress getSender() {
if (sender != null) {
return sender;
Expand Down

0 comments on commit c89ab7b

Please sign in to comment.