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

Copied genesis transaction output from ravencoinj

This commit is contained in:
CalDescent 2022-04-23 17:17:21 +01:00
parent 6ffdc03950
commit a5755908f0

View File

@ -32,6 +32,7 @@ import java.io.ByteArrayOutputStream;
import java.util.Arrays;
import static com.google.common.base.Preconditions.checkState;
import static org.bitcoinj.core.Coin.FIFTY_COINS;
/**
* Parameters for the Ravencoin main production network on which people trade
@ -100,7 +101,7 @@ public class RavencoinMainNetParams extends AbstractRavencoinParams {
ByteArrayOutputStream scriptPubKeyBytes = new ByteArrayOutputStream();
Script.writeBytes(scriptPubKeyBytes, Utils.HEX.decode("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f"));
scriptPubKeyBytes.write(ScriptOpCodes.OP_CHECKSIG);
t.addOutput(new TransactionOutput(params, t, Coin.valueOf(5000, 0), scriptPubKeyBytes.toByteArray()));
t.addOutput(new TransactionOutput(params, t, FIFTY_COINS, scriptPubKeyBytes.toByteArray()));
} catch (Exception e) {
// Cannot happen.
throw new RuntimeException(e);