3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 03:35:52 +00:00

Script.ScriptType: Document enum values.

This commit is contained in:
Andreas Schildbach 2018-03-05 21:51:18 +01:00
parent fb54451c0b
commit f5becfbfb0

View File

@ -58,11 +58,11 @@ public class Script {
public enum ScriptType { public enum ScriptType {
// Do NOT change the ordering of the following definitions because their ordinals are stored in databases. // Do NOT change the ordering of the following definitions because their ordinals are stored in databases.
NO_TYPE, NO_TYPE,
P2PKH, P2PKH, // pay to pubkey hash (aka pay to address)
PUB_KEY, PUB_KEY, // pay to pubkey
P2SH, P2SH, // pay to script hash
P2WPKH, P2WPKH, // pay to witness pubkey hash
P2WSH P2WSH, // pay to witness script hash
} }
/** Flags to pass to {@link Script#correctlySpends(Transaction, long, Script, Set)}. /** Flags to pass to {@link Script#correctlySpends(Transaction, long, Script, Set)}.