3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 11:45:51 +00:00

Address: serialize network parameters in Java serialization as well.

This commit is contained in:
Mike Hearn 2015-03-03 11:02:01 -08:00
parent 8e75134932
commit f12122f585

View File

@ -42,7 +42,7 @@ public class Address extends VersionedChecksummedBytes {
*/ */
public static final int LENGTH = 20; public static final int LENGTH = 20;
transient final NetworkParameters params; private final NetworkParameters params;
/** /**
* Construct an address from parameters, the address version, and the hash160 form. Example:<p> * Construct an address from parameters, the address version, and the hash160 form. Example:<p>
@ -121,7 +121,7 @@ public class Address extends VersionedChecksummedBytes {
return bytes; return bytes;
} }
/* /**
* Returns true if this address is a Pay-To-Script-Hash (P2SH) address. * Returns true if this address is a Pay-To-Script-Hash (P2SH) address.
* See also https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki: Address Format for pay-to-script-hash * See also https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki: Address Format for pay-to-script-hash
*/ */