aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index bfa8552..d1aa644 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -550,9 +550,13 @@ func (bc *blockChain) prepareBlock(position types.Position,
}
b.ParentHash = tip.Hash
if !empty {
+ bc.logger.Debug("Calling Application.PreparePayload",
+ "position", b.Position)
if b.Payload, err = bc.app.PreparePayload(b.Position); err != nil {
return
}
+ bc.logger.Debug("Calling Application.PrepareWitness",
+ "height", tip.Witness.Height)
if b.Witness, err = bc.app.PrepareWitness(
tip.Witness.Height); err != nil {
return