Search in sources :

Example 21 with NulsDigestData

use of io.nuls.core.chain.entity.NulsDigestData in project nuls by nuls-io.

the class CommonDigestEvent method copy.

@Override
public Object copy() {
    NulsDigestData data = new NulsDigestData(this.getEventBody().getWholeBytes());
    CommonDigestEvent event = new CommonDigestEvent(data);
    return event;
}
Also used : NulsDigestData(io.nuls.core.chain.entity.NulsDigestData)

Example 22 with NulsDigestData

use of io.nuls.core.chain.entity.NulsDigestData in project nuls by nuls-io.

the class GetEventBodyEvent method copy.

@Override
public Object copy() {
    GetEventBodyEvent event = new GetEventBodyEvent();
    NulsDigestData data = new NulsDigestData(this.getEventBody().getWholeBytes());
    event.setEventBody(data);
    return event;
}
Also used : NulsDigestData(io.nuls.core.chain.entity.NulsDigestData)

Aggregations

NulsDigestData (io.nuls.core.chain.entity.NulsDigestData)22 Transaction (io.nuls.core.chain.entity.Transaction)6 NulsException (io.nuls.core.exception.NulsException)5 NulsRuntimeException (io.nuls.core.exception.NulsRuntimeException)5 ValidateResult (io.nuls.core.validate.ValidateResult)4 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)4 BlockHashResponse (io.nuls.consensus.entity.BlockHashResponse)3 Block (io.nuls.core.chain.entity.Block)3 NulsByteBuffer (io.nuls.core.utils.io.NulsByteBuffer)3 LockNulsTransaction (io.nuls.ledger.entity.tx.LockNulsTransaction)3 RedPunishTransaction (io.nuls.consensus.entity.tx.RedPunishTransaction)2 YellowPunishTransaction (io.nuls.consensus.entity.tx.YellowPunishTransaction)2 BlockHeader (io.nuls.core.chain.entity.BlockHeader)2 P2PKHScript (io.nuls.core.script.P2PKHScript)2 P2PKHScriptSig (io.nuls.core.script.P2PKHScriptSig)2 UtxoOutput (io.nuls.ledger.entity.UtxoOutput)2 AbstractCoinTransaction (io.nuls.ledger.entity.tx.AbstractCoinTransaction)2 CoinBaseTransaction (io.nuls.ledger.entity.tx.CoinBaseTransaction)2 HashMap (java.util.HashMap)2