C# 클래스 BitSharp.Core.Rules.CoreRules

상속: ICoreRules
파일 보기 프로젝트 열기: pmlyon/BitSharp 1 사용 예제들

공개 메소드들

메소드 설명
CoreRules ( IChainParams chainParams ) : BitSharp.Common
GetRequiredNextBits ( BitSharp.Core.Domain.Chain chain ) : uint
PostValidateBlock ( BitSharp.Core.Domain.Chain newChain, object finalTally ) : void
PreValidateBlock ( BitSharp.Core.Domain.Chain newChain ) : void
TallyTransaction ( BitSharp.Core.Domain.Chain newChain, ValidatableTx validatableTx, object &runningTally ) : void
ValidateTransaction ( BitSharp.Core.Domain.Chain newChain, ValidatableTx validatableTx ) : void
ValidationTransactionScript ( BitSharp.Core.Domain.Chain newChain, BlockTx tx, BitSharp.Core.Domain.TxInput txInput, int txInputIndex, PrevTxOutput prevTxOutput ) : void

비공개 메소드들

메소드 설명
CountLegacySigOps ( ImmutableArray script, bool accurate ) : int
CountP2SHSigOps ( ValidatableTx validatableTx ) : int
CountP2SHSigOps ( ValidatableTx validatableTx, int inputIndex ) : int
GetMedianPrevHeaderTime ( BitSharp.Core.Domain.Chain chain, int height ) : DateTimeOffset
GetOp ( ImmutableArray script, int &index, ScriptOp &op ) : bool
GetOp ( ImmutableArray script, int &index, ScriptOp &op, ImmutableArray &data ) : bool
GetOp ( ImmutableArray script, int &index, ScriptOp &op, ImmutableArray &data, bool readData ) : bool
GetPushInt64Script ( long value ) : ImmutableArray
IsFinal ( BitSharp.Core.Domain.Transaction tx, int blockHeight, long blockTime ) : bool
IsFinal ( BitSharp.Core.Domain.TxInput input ) : bool
IsSuperMajority ( int minVersion, BitSharp.Core.Domain.Chain newChain, int requiredCount ) : bool
SerializeScriptValue ( long value ) : byte[]

메소드 상세

CoreRules() 공개 메소드

public CoreRules ( IChainParams chainParams ) : BitSharp.Common
chainParams IChainParams
리턴 BitSharp.Common

GetRequiredNextBits() 공개 메소드

public GetRequiredNextBits ( BitSharp.Core.Domain.Chain chain ) : uint
chain BitSharp.Core.Domain.Chain
리턴 uint

PostValidateBlock() 공개 메소드

public PostValidateBlock ( BitSharp.Core.Domain.Chain newChain, object finalTally ) : void
newChain BitSharp.Core.Domain.Chain
finalTally object
리턴 void

PreValidateBlock() 공개 메소드

public PreValidateBlock ( BitSharp.Core.Domain.Chain newChain ) : void
newChain BitSharp.Core.Domain.Chain
리턴 void

TallyTransaction() 공개 메소드

public TallyTransaction ( BitSharp.Core.Domain.Chain newChain, ValidatableTx validatableTx, object &runningTally ) : void
newChain BitSharp.Core.Domain.Chain
validatableTx BitSharp.Core.Domain.ValidatableTx
runningTally object
리턴 void

ValidateTransaction() 공개 메소드

public ValidateTransaction ( BitSharp.Core.Domain.Chain newChain, ValidatableTx validatableTx ) : void
newChain BitSharp.Core.Domain.Chain
validatableTx BitSharp.Core.Domain.ValidatableTx
리턴 void

ValidationTransactionScript() 공개 메소드

public ValidationTransactionScript ( BitSharp.Core.Domain.Chain newChain, BlockTx tx, BitSharp.Core.Domain.TxInput txInput, int txInputIndex, PrevTxOutput prevTxOutput ) : void
newChain BitSharp.Core.Domain.Chain
tx BitSharp.Core.Domain.BlockTx
txInput BitSharp.Core.Domain.TxInput
txInputIndex int
prevTxOutput BitSharp.Core.Domain.PrevTxOutput
리턴 void