listener

package
v0.0.0-...-15eb78e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

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 새로운 블록이 원장에 저장되면 해당 메소드를 호출 한다 => 원장 저장 => 트랜잭션풀에서 트랜잭션 가져와서 새로운 블록생성의 순서인 것 같다!!

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL