From afb61f089c2ab661c83e34bd28d8d4dff5587758 Mon Sep 17 00:00:00 2001 From: vsmk98 Date: Tue, 24 Sep 2019 17:09:22 +0800 Subject: [PATCH] permission: removed unused code --- core/tx_pool.go | 3 --- params/protocol_params.go | 10 +--------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index ce751549c..6a22a789a 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -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 ( diff --git a/params/protocol_params.go b/params/protocol_params.go index dff558085..b0bff971b 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -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 -}