Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTrackingListener ¶
type BlockTrackingListener struct {
// contains filtered or unexported fields
}
블록 생성 시 stateDelta객체를 저장하는 객체
func MakeBlockTrackingListener ¶
func MakeBlockTrackingListener(ledger *ledger.Ledger, log logging.Logger) *BlockTrackingListener
리스너를 만든다.
func (*BlockTrackingListener) OnNewBlock2 ¶
func (listener *BlockTrackingListener) OnNewBlock2(block bookkeeping.Block, delta ledgercore.StateDelta)
OnNewBlock excises transactions from the pool that are included in the specified Block or if they've expired 새로운 블록이 원장에 저장되면 해당 메소드를 호출 한다 => 원장 저장 => 트랜잭션풀에서 트랜잭션 가져와서 새로운 블록생성의 순서인 것 같다!!
Click to show internal directories.
Click to hide internal directories.