mirror of https://github.com/poanetwork/quorum.git
remove log messages added for debugging
This commit is contained in:
parent
b6f497c5ef
commit
f5c87e48a4
|
@ -624,7 +624,6 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
|
||||||
|
|
||||||
// Check if the sender account is authorized to perform the transaction
|
// Check if the sender account is authorized to perform the transaction
|
||||||
if isQuorum {
|
if isQuorum {
|
||||||
log.Info("SMK-validateTx callig checkAccount @627")
|
|
||||||
if err := checkAccount(from, tx.To()); err != nil {
|
if err := checkAccount(from, tx.To()); err != nil {
|
||||||
return ErrUnAuthorizedAccount
|
return ErrUnAuthorizedAccount
|
||||||
}
|
}
|
||||||
|
@ -751,7 +750,6 @@ func (pool *TxPool) journalTx(from common.Address, tx *types.Transaction) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// promoteTx adds a transaction to the pending (processable) list of transactions
|
// promoteTx adds a transaction to the pending (processable) list of transactions
|
||||||
// and returns whether it was inserted or an older was better.
|
// and returns whether it was inserted or an older was better.
|
||||||
//
|
//
|
||||||
|
@ -1235,7 +1233,6 @@ func newTxLookup() *txLookup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Range calls f on each key and value present in the map.
|
// Range calls f on each key and value present in the map.
|
||||||
func (t *txLookup) Range(f func(hash common.Hash, tx *types.Transaction) bool) {
|
func (t *txLookup) Range(f func(hash common.Hash, tx *types.Transaction) bool) {
|
||||||
t.lock.RLock()
|
t.lock.RLock()
|
||||||
|
@ -1282,23 +1279,17 @@ func (t *txLookup) Remove(hash common.Hash) {
|
||||||
|
|
||||||
// checks if the account is permissioned for transaction
|
// checks if the account is permissioned for transaction
|
||||||
func checkAccount(fromAcct common.Address, toAcct *common.Address) error {
|
func checkAccount(fromAcct common.Address, toAcct *common.Address) error {
|
||||||
log.Info("SMK-checkAccounti @1284")
|
|
||||||
access := types.GetAcctAccess(fromAcct)
|
access := types.GetAcctAccess(fromAcct)
|
||||||
|
|
||||||
log.Info("SMK-checkAccounti @1287 : ", "acct", fromAcct, "access", access)
|
|
||||||
|
|
||||||
switch access {
|
switch access {
|
||||||
case types.FullAccess:
|
case types.FullAccess:
|
||||||
log.Info("SMK-checkAccounti @1291 case full access")
|
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case types.ReadOnly:
|
case types.ReadOnly:
|
||||||
log.Info("SMK-checkAccounti @1291 case read only")
|
|
||||||
err := errors.New("Account Does not have transaction permissions")
|
err := errors.New("Account Does not have transaction permissions")
|
||||||
return err
|
return err
|
||||||
|
|
||||||
case types.Transact:
|
case types.Transact:
|
||||||
log.Info("SMK-checkAccounti @1300 case transact ")
|
|
||||||
if toAcct == nil {
|
if toAcct == nil {
|
||||||
err := errors.New("Account Does not have contract create permissions")
|
err := errors.New("Account Does not have contract create permissions")
|
||||||
return err
|
return err
|
||||||
|
@ -1306,7 +1297,6 @@ func checkAccount(fromAcct common.Address, toAcct *common.Address) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
case types.ContractDeploy:
|
case types.ContractDeploy:
|
||||||
log.Info("SMK-checkAccounti @1308 case contract ")
|
|
||||||
if toAcct != nil {
|
if toAcct != nil {
|
||||||
err := errors.New("Account Does not have transacte permissions")
|
err := errors.New("Account Does not have transacte permissions")
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue