diff --git a/api/fees/fees.go b/api/fees/fees.go index 8419aad86..80696344e 100644 --- a/api/fees/fees.go +++ b/api/fees/fees.go @@ -201,10 +201,12 @@ func (f *Fees) handleGetFeesHistory(w http.ResponseWriter, req *http.Request) er func (f *Fees) pushBestBlockToCache() { ticker := f.repo.NewTicker() + fmt.Printf("LLEGA ticker 1\n") for { select { case <-ticker.C(): bestBlockSummary := f.repo.BestBlockSummary() + fmt.Printf("LLEGA ticker 2 %+v\n", bestBlockSummary) f.cache.push(bestBlockSummary.Header) case <-f.done: return diff --git a/test/testchain/chain.go b/test/testchain/chain.go index 97a0e0859..547253823 100644 --- a/test/testchain/chain.go +++ b/test/testchain/chain.go @@ -8,6 +8,7 @@ package testchain import ( "errors" "fmt" + "runtime" "slices" "time" @@ -132,6 +133,9 @@ func (c *Chain) GenesisBlock() *block.Block { // MintTransactions creates a block with the provided transactions and adds it to the blockchain. // It wraps the transactions with receipts and passes them to MintTransactionsWithReceiptFunc. func (c *Chain) MintTransactions(account genesis.DevAccount, transactions ...*tx.Transaction) error { + pc, _, _, _ := runtime.Caller(1) + function := runtime.FuncForPC(pc) + fmt.Printf("LLEGA MintTransactions %s\n", function.Name()) return c.MintBlock(account, transactions...) }