adshares / ads

ADS Blockchain
Other
21 stars 4 forks source link

get_message returns invalid public_key for account_created transaction #125

Closed PawelPodkalicki closed 6 years ago

PawelPodkalicki commented 6 years ago

Below is response for get_message after creating remote account. Field public_key has wrong value.

{
    "current_block_time": "1531486208",
    "previous_block_time": "1531486176",
    "tx": {
        "data": "1A01000200000000A0485BA09F485B0200C0000000",
        "signature": "2AC24C4A72008963CD90F9B762E91E119F430F1FA57861563FD2B96447D41F3832AD8924B6CADBF7DEB86A15DFC8CBEFEFAC6FF52655D0DFC606A2C47774F709",
        "time": "1531486208"
    },
    "node": "2",
    "node_msid": "192",
    "time": "1531486120",
    "length": "138",
    "hash": "CAB9B72085490AD8CC25FD99F0953967EAE7ECF5234BF882176123D3D6041DCC",
    "transactions": [{
            "id": "0002:000000C0:0001",
            "type": "account_created",
            "node": "2",
            "user": "2",
            "msg_id": "0",
            "time": "1531486119",
            "destination_node": "1",
            "destination_user": "0",
            "public_key": "���rت�8\u0005�J()\u001E\u0005.;_����$�pT��i\u0003c",
            "size": "53"
        }, {
            "id": "0002:000000C0:0002",
            "type": "connection",
            "port": "8002",
            "ip_address": "172.16.222.101",
            "size": "7"
        }
    ]
}
PawelPodkalicki commented 6 years ago

Most of transactions have signature. Is it correct that account_created doesn't have this field?

PawelPodkalicki commented 6 years ago

Transaction account_created was added by node, it doesn't have signature. Field public_key is encoded properly (Fixed).