Skip to content

Commit

Permalink
Allow txn relay while in needs block state in PoW only
Browse files Browse the repository at this point in the history
  • Loading branch information
tholonious committed May 21, 2024
1 parent 9ddc28d commit 9adcf8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ require (
github.com/gernest/mention v2.0.0+incompatible
github.com/go-pg/pg/v10 v10.10.0
github.com/golang/glog v1.0.0
github.com/google/uuid v1.2.0
github.com/holiman/uint256 v1.1.1
github.com/mitchellh/go-homedir v1.1.0
github.com/oleiade/lane v1.0.1
Expand Down Expand Up @@ -63,7 +64,6 @@ require (
github.com/golang/snappy v0.0.3 // indirect
github.com/google/flatbuffers v2.0.0+incompatible // indirect
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.8 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions lib/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1705,13 +1705,13 @@ func (srv *Server) _addNewTxn(
return nil, err
}

if srv.blockchain.chainState() != SyncStateFullyCurrent {
// if srv.blockchain.chainState() != SyncStateFullyCurrent {

err := fmt.Errorf("Server._addNewTxnAndRelay: Cannot process txn "+
"from peer %v while syncing: %v %v", pp, srv.blockchain.chainState(), txn.Hash())
glog.Error(err)
return nil, err
}
// err := fmt.Errorf("Server._addNewTxnAndRelay: Cannot process txn "+
// "from peer %v while syncing: %v %v", pp, srv.blockchain.chainState(), txn.Hash())
// glog.Error(err)
// return nil, err
// }

glog.V(1).Infof("Server._addNewTxnAndRelay: txn: %v, peer: %v", txn, pp)

Expand Down

0 comments on commit 9adcf8b

Please sign in to comment.