permission: removed unused code

This commit is contained in:
vsmk98 2019-09-24 17:09:22 +08:00
parent 0605495bef
commit afb61f089c
2 changed files with 1 additions and 12 deletions

View File

@ -82,9 +82,6 @@ var (
// ErrEtherValueUnsupported is returned if a transaction specifies an Ether Value
// for a private Quorum transaction.
ErrEtherValueUnsupported = errors.New("ether value is not supported for private transactions")
// ErrUnahorizedAccount is returned if the sender account is not authorized by the
// permissions module
ErrUnAuthorizedAccount = errors.New("Account not authorized for this operation")
)
var (

View File

@ -79,8 +79,7 @@ const (
MemoryGas uint64 = 3 // Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL.
TxDataNonZeroGas uint64 = 68 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions.
MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
QuorumMaxCodeSize = 32768 // Maximum bytecode to permit for a contract
MaxCodeSize = 24576 // Maximum bytecode to permit for a contract
// Precompiled contract gas prices
@ -113,10 +112,3 @@ func GetMaximumExtraDataSize(isQuorum bool) uint64 {
return MaximumExtraDataSize
}
}
func GetMaxCodeSize(isQuorum bool) int {
if isQuorum {
return QuorumMaxCodeSize
}
return MaxCodeSize
}