transaction: rename FeeOnly to None

Follow missed change from neo-project/neo#1816 .
`None` may be used for any signer. Currently it is used
for sender to only pay fees, or to sign tx attributes.
This commit is contained in:
Evgenii Stratonikov 2020-10-01 15:26:51 +03:00
parent 230352d99f
commit fa09b9af7b
13 changed files with 24 additions and 34 deletions

View file

@ -127,7 +127,7 @@ func TestAddBadBlock(t *testing.T) {
tx := transaction.New(netmode.UnitTestNet, []byte{byte(opcode.PUSH1)}, 0)
tx.Signers = []transaction.Signer{{
Account: testchain.MultisigScriptHash(),
Scopes: transaction.FeeOnly,
Scopes: transaction.None,
}}
require.NoError(t, signTx(bc, tx))
b1 := bc.newBlock(tx)
@ -147,7 +147,7 @@ func TestAddBadBlock(t *testing.T) {
tx.ValidUntilBlock = 128
tx.Signers = []transaction.Signer{{
Account: testchain.MultisigScriptHash(),
Scopes: transaction.FeeOnly,
Scopes: transaction.None,
}}
require.NoError(t, signTx(bc, tx))
require.NoError(t, bc.PoolTx(tx))
@ -378,7 +378,7 @@ func TestVerifyTx(t *testing.T) {
tx.NetworkFee += 4_000_000 // multisig check
tx.Signers = []transaction.Signer{{
Account: testchain.CommitteeScriptHash(),
Scopes: transaction.FeeOnly,
Scopes: transaction.None,
}}
rawScript := testchain.CommitteeVerificationScript()
require.NoError(t, err)
@ -419,7 +419,7 @@ func TestVerifyTx(t *testing.T) {
tx.SystemFee = int64(req.GasForResponse - uint64(tx.NetworkFee))
tx.Signers = []transaction.Signer{{
Account: oracleHash,
Scopes: transaction.FeeOnly,
Scopes: transaction.None,
}}
size := io.GetVarSize(tx)
netFee, sizeDelta := CalculateNetworkFee(oracleScript)