Skip to content

Commit

Permalink
temp log
Browse files Browse the repository at this point in the history
  • Loading branch information
RainFallsSilent committed Jan 21, 2025
1 parent a45a4c9 commit 459e057
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/config/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
package settings

import (
"path/filepath"
"strings"

"github.com/RainFallsSilent/screw"
"github.com/elastos/Elastos.ELA/common/config"
"github.com/elastos/Elastos.ELA/core/transaction"
"github.com/elastos/Elastos.ELA/core/types/functions"
"github.com/elastos/Elastos.ELA/elanet/pact"
"github.com/spf13/viper"
"path/filepath"
"strings"
)

type Settings struct {
Expand Down Expand Up @@ -86,8 +87,6 @@ func (s *Settings) SetupConfig(withScrew bool, about string, version string) *co

if conf.MaxTxPerBlock > 0 {
pact.MaxTxPerBlock = conf.MaxTxPerBlock
} else {
pact.MaxTxPerBlock = 10000
}

instantBlock := conf.PowConfiguration.InstantBlock
Expand Down
3 changes: 3 additions & 0 deletions dpos/manager/proposaldispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ func (p *ProposalDispatcher) StartProposal(b *types.Block) {
Result: false,
}
p.cfg.EventMonitor.OnProposalArrived(&proposalEvent)
log.Info("#### acceptProposal:", proposal.Hash(), "sponsor:", common.BytesToHexString(proposal.Sponsor))
p.acceptProposal(proposal)
log.Info("#### rejectProposal:", proposal.Hash(), "sponsor:", common.BytesToHexString(proposal.Sponsor))
p.rejectProposal(proposal)
}

func (p *ProposalDispatcher) TryStartSpeculatingProposal(b *types.Block) {
Expand Down

0 comments on commit 459e057

Please sign in to comment.