transaction: drop old attributes

They're not supported in Neo 3. Also change data encoding to base64 following
Neo 3 changes.
This commit is contained in:
Roman Khimov 2020-07-10 20:40:27 +03:00
parent 56a8f11ad6
commit fedcc6b6fc
7 changed files with 13 additions and 223 deletions

View file

@ -70,7 +70,7 @@ func TestOverCapacity(t *testing.T) {
for i := 0; i < mempoolSize; i++ {
tx := transaction.New(netmode.UnitTestNet, []byte{byte(opcode.PUSH1)}, 0)
tx.Attributes = append(tx.Attributes, transaction.Attribute{
Usage: transaction.Hash1,
Usage: transaction.DescriptionURL,
Data: util.Uint256{1, 2, 3, 4}.BytesBE(),
})
tx.NetworkFee = 10000
@ -84,7 +84,7 @@ func TestOverCapacity(t *testing.T) {
// Less prioritized txes are not allowed anymore.
tx := transaction.New(netmode.UnitTestNet, []byte{byte(opcode.PUSH1)}, 0)
tx.Attributes = append(tx.Attributes, transaction.Attribute{
Usage: transaction.Hash1,
Usage: transaction.DescriptionURL,
Data: util.Uint256{1, 2, 3, 4}.BytesBE(),
})
tx.NetworkFee = 100