Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

events from different node in get_log response #24

Closed
PawelPodkalicki opened this issue May 11, 2018 · 0 comments
Closed

events from different node in get_log response #24

PawelPodkalicki opened this issue May 11, 2018 · 0 comments
Labels
Improvement Making things better

Comments

@PawelPodkalicki
Copy link
Member

PawelPodkalicki commented May 11, 2018

I received bank_profit event for node 1 in log for node 2. Below is sample response.
The first event in log has type=bank_profit and node=1. It is event for node 1 and doesn't affect node 2 balance. It is useless.

Please, note that send_one event has also node=1, but it is correct that this event is in log. This is incoming transfer from node 1.

{
    "tx": {
        "data": "110200000000000200000000002221F35AB3CCFF22BAAB85060DDD8C0D53F2B38B85FE58179637C725956225C0348D712F32B7BB49165A7F5C1EE3A524D8FFA4BEDB8C6FFA436F628ACEAB45D385D6FF02"
    },
    "current_block_time": "1525883200",
    "previous_block_time": "1525883168",
    "account": {
        "address": "0002-00000000-75BD",
        "node": "2",
        "id": "0",
        "msid": "1",
        "time": "1525883072",
        "status": "0",
        "paired_node": "2",
        "paired_id": "0",
        "local_change": "1525883072",
        "remote_change": "1525883168",
        "balance": "6459800.99999991217",
        "public_key": "3A9F69FEDCB0694123899C1EA7E14256CAD7B4A2C86311FC6B5ED4027404A282",
        "hash": "CBE212402DEC2D4B32B17D5D7570E30D38AFC423B0471AEF158594CD9620A9B2"
    },
    "log": [{
            "time": "1525883205",
            "date": "2018-05-09 18:26:45",
            "type_no": "32785",
            "confirmed": "no",
            "type": "bank_profit",
            "profit": "0.00312500000",
            "node": "1",
            "node_msid": "1"
        }, {
            "time": "1525883205",
            "date": "2018-05-09 18:26:45",
            "type_no": "32772",
            "confirmed": "no",
            "type": "send_one",
            "node": "1",
            "account": "0",
            "address": "0001-00000000-9B6F",
            "node_msid": "1",
            "node_mpos": "1",
            "account_msid": "1",
            "amount": "100.00000000000",
            "sender_fee": "0.10000000000",
            "message": "0000000000000000000000000000000000000000000000000000000000000000",
            "inout": "in",
            "id": "0001:00000001:0001"
        }, {
            "time": "1525883205",
            "date": "2018-05-09 18:26:45",
            "type_no": "32785",
            "confirmed": "no",
            "type": "bank_profit",
            "profit": "-0.00000004188",
            "node": "2",
            "node_msid": "1"
        }, {
            "time": "1525883205",
            "date": "2018-05-09 18:26:45",
            "type_no": "32785",
            "confirmed": "no",
            "type": "bank_profit",
            "profit": "-0.00000004201",
            "node": "2",
            "node_msid": "2",
            "profit_fee": "0.00000000000",
            "profit_div": "0.00000000000"
        }, {
            "time": "1525883205",
            "date": "2018-05-09 18:26:45",
            "type_no": "32785",
            "confirmed": "no",
            "type": "bank_profit",
            "block_id": "5AF32120",
            "profit_div": "0.00000000000",
            "profit_usr": "0.00000000000",
            "profit_get": "0.00000000000",
            "profit": "0.00000000000",
            "fee": "0.00000000004"
        }
    ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Improvement Making things better
Projects
None yet
Development

No branches or pull requests

1 participant