Skip to content

zero bytes data field and TxID calcing #1

Description

@j0k

what about data field?

 public static byte[] generateSignedRegularTransaction(String sourceAddress, long sourceAmount, List<Output> outputs, long signatureIndex, AddressManager addressManager) {
        if (addressManager.get(sourceAddress) == null) {
            throw new IllegalArgumentException("The address " + sourceAddress + " is not contained in the specified wallet file!");
        }

        try {
            byte[] txid = calculateRegularTransactionTxID(sourceAddress, sourceAmount, outputs, signatureIndex);
            ...
            builder.setData(ByteString.copyFrom(new byte[]{}));

code which doesn't use data: https://github.com/VeriBlock/offline-wallet-cli/blob/master/src/main/java/veriblock/OfflineTransactionUtilities.java

code which use: https://github.com/VeriBlock/alt-integration/blob/master/core/src/main/java/org/veriblock/sdk/VeriBlockTransaction.java

is it ok just to set data eq to [] without any option on that point?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions