mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
RedeemData: Implement toString().
This commit is contained in:
@@ -20,6 +20,8 @@ import org.bitcoinj.core.ECKey;
|
||||
import org.bitcoinj.script.Script;
|
||||
import org.bitcoinj.script.ScriptPattern;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -67,4 +69,12 @@ public class RedeemData {
|
||||
return key;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(this).omitNullValues();
|
||||
helper.add("redeemScript", redeemScript);
|
||||
helper.add("keys", keys);
|
||||
return helper.toString();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user