Skip to content

Commit

Permalink
Remove unintended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Sep 11, 2023
1 parent 22f9a21 commit c5d1559
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions cmd/soroban-rpc/internal/ingest/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,14 @@ func (s *Service) fillEntriesFromCheckpoint(ctx context.Context, archive history
func (s *Service) ingest(ctx context.Context, sequence uint32) error {
startTime := time.Now()
s.logger.Infof("Ingesting ledger %d", sequence)
s.logger.Infof("Ingesting ledger %d (before GetLedger)", sequence)
ledgerCloseMeta, err := s.ledgerBackend.GetLedger(ctx, sequence)
if err != nil {
return err
}
s.logger.Infof("Ingesting ledger %d (after GetLedger)", sequence)
s.logger.Infof("Ingesting ledger %d (before NewLedgerChangeReaderFromLedgerCloseMeta)", sequence)
reader, err := ingest.NewLedgerChangeReaderFromLedgerCloseMeta(s.networkPassPhrase, ledgerCloseMeta)
if err != nil {
return err
}
s.logger.Infof("Ingesting ledger %d (before NexTx)", sequence)
tx, err := s.db.NewTx(ctx)
if err != nil {
return err
Expand All @@ -253,12 +249,10 @@ func (s *Service) ingest(ctx context.Context, sequence uint32) error {
s.logger.WithError(err).Warn("could not rollback ingest write transactions")
}
}()
s.logger.Infof("Ingesting ledger %d (before ingestLedgerEntryChanges)", sequence)

if err := s.ingestLedgerEntryChanges(ctx, reader, tx, 0); err != nil {
return err
}
s.logger.Infof("Ingesting ledger %d (before reader.Close)", sequence)
if err := reader.Close(); err != nil {
return err
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/soroban-rpc/internal/methods/send_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package methods
import (
"context"
"encoding/hex"
"fmt"

"github.com/creachadair/jrpc2"
"github.com/creachadair/jrpc2/handler"
Expand Down Expand Up @@ -73,7 +72,6 @@ func NewSendTransactionHandler(daemon interfaces.Daemon, logger *log.Entry, stor
txHash := hex.EncodeToString(hash[:])

ledgerInfo := store.GetLatestLedger()
fmt.Printf("\n\n\nTX: %s\n\n\n", txHash)
resp, err := submitter.SubmitTransaction(ctx, request.Transaction)
if err != nil {
logger.WithError(err).
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/test/core-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if [ "$1" = "standalone" ]; then
popd
fi

exec stellar-core run --console --ll debug
exec stellar-core run --console

0 comments on commit c5d1559

Please sign in to comment.