Skip to content

Commit

Permalink
test gha
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Jan 31, 2025
1 parent 8c5dff4 commit 66e151d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/fees/fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/testchain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package testchain
import (
"errors"
"fmt"
"runtime"
"slices"
"time"

Expand Down Expand Up @@ -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...)
}

Expand Down

0 comments on commit 66e151d

Please sign in to comment.