Send one transaction to PrimarryWallet smart contract instead of several (equal to active SONs count) #479

Closed
opened 2022-11-09 04:31:49 +00:00 by vampik · 27 comments
vampik commented 2022-11-09 04:31:49 +00:00 (Migrated from gitlab.com)

Now we send transaction for ETH smart contract for every SON. So we paid much more gas fee for it.
Investigate (and implement if possible) mechanism to send all one transaction for smart contract, which would contain signatures of all SONs.

Now we send transaction for ETH smart contract for every SON. So we paid much more gas fee for it. Investigate (and implement if possible) mechanism to send all one transaction for smart contract, which would contain signatures of all SONs.
vampik commented 2022-11-09 04:31:49 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2022-11-25 06:04:28 +00:00 (Migrated from gitlab.com)

mentioned in commit a994b3ee195009fd316e88654a417399dc0bccdd

mentioned in commit a994b3ee195009fd316e88654a417399dc0bccdd
vampik commented 2022-11-25 06:04:28 +00:00 (Migrated from gitlab.com)

mentioned in commit f83b262d19dd449b90153b18ba0256e65d38b190

mentioned in commit f83b262d19dd449b90153b18ba0256e65d38b190
vampik commented 2022-11-25 06:08:55 +00:00 (Migrated from gitlab.com)

mentioned in merge request !183

mentioned in merge request !183
vampik commented 2022-11-29 07:03:49 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
vampik commented 2022-12-01 01:53:40 +00:00 (Migrated from gitlab.com)

mentioned in commit c3eab0a80b

mentioned in commit c3eab0a80b015cea267ca9b283dc7c9e85aebce8
serkixenos commented 2022-12-01 01:53:40 +00:00 (Migrated from gitlab.com)

mentioned in commit 5dff0830fb

mentioned in commit 5dff0830fbc61c7d2e98e3b6ef6999bfd0debe07
serkixenos commented 2022-12-01 03:51:56 +00:00 (Migrated from gitlab.com)

assigned to @wsalloum

assigned to @wsalloum
vampik commented 2022-12-01 07:16:29 +00:00 (Migrated from gitlab.com)

Test this issue: check that withdrawal and update active SONs works without any errors.

Test this issue: check that withdrawal and update active SONs works without any errors.
wsalloum commented 2022-12-01 12:20:25 +00:00 (Migrated from gitlab.com)

In which branch ? or it is on the master?

In which branch ? or it is on the master?
vampik commented 2022-12-01 12:36:36 +00:00 (Migrated from gitlab.com)

This change is in develop branch.
You need to rebuild peerplays and eth docker containers.

This change is in `develop` branch. You need to rebuild peerplays and eth docker containers.
wsalloum commented 2022-12-01 19:24:40 +00:00 (Migrated from gitlab.com)

There is error when I run pytest test_eth_son.py::test_eth_deposit test_eth_son.py::test_eth_withdrawal

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit  test_eth_son.py::test_eth_withdrawal

=================================================== short test summary info ===================================================
FAILED test_eth_son.py::test_eth_withdrawal - assert 1000000000000000000 == (499997999970131999790924 + (1 * 100000000000000...

There is error when I run `pytest test_eth_son.py::test_eth_deposit test_eth_son.py::test_eth_withdrawal` ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit test_eth_son.py::test_eth_withdrawal =================================================== short test summary info =================================================== FAILED test_eth_son.py::test_eth_withdrawal - assert 1000000000000000000 == (499997999970131999790924 + (1 * 100000000000000... ```
vampik commented 2022-12-02 05:44:32 +00:00 (Migrated from gitlab.com)

Did you try to execute by hand?

Do these tests work on the develop branch if exclude the changes for #479 issue?

What about update active SONs, does it work fine?

Did you try to execute by hand? Do these tests work on the develop branch if exclude the changes for #479 issue? What about update active SONs, does it work fine?
wsalloum commented 2022-12-02 17:09:17 +00:00 (Migrated from gitlab.com)

Active sons and voting is ok

unlocked >>> get_active_sons
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "sonaccount04"
      },{
        "son_id": "1.33.4",
        "weight": 1,
        "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
        "public_key": "sonaccount05"
      }
    ]
  ]
]
unlocked >>> vote_for_son account01 sonaccount08 "bitcoin" true true
unlocked >>> vote_for_son account01 sonaccount08 "hive" true true
unlocked >>> vote_for_son account01 sonaccount08 "ethereum" true true
unlocked >>> get_active_sons                                          
get_active_sons
[[
    "bitcoin",[{
        "son_id": "1.33.7",
        "weight": 1,
        "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
        "public_key": "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
      }
    ]
  ],[
    "ethereum",[{
        "son_id": "1.33.7",
        "weight": 1,
        "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
        "public_key": "03a13a989af30c92ad7abd1e6210308a6c96f373"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "09ee460834498a4ee361beb819470061b7381b49"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
      }
    ]
  ],[
    "hive",[{
        "son_id": "1.33.7",
        "weight": 1,
        "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
        "public_key": "sonaccount08"
      },{
        "son_id": "1.33.0",
        "weight": 1,
        "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
        "public_key": "sonaccount01"
      },{
        "son_id": "1.33.1",
        "weight": 1,
        "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
        "public_key": "sonaccount02"
      },{
        "son_id": "1.33.2",
        "weight": 1,
        "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
        "public_key": "sonaccount03"
      },{
        "son_id": "1.33.3",
        "weight": 1,
        "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
        "public_key": "sonaccount04"
      }
    ]
  ]
]

Active sons and voting is ok ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] ``` ``` unlocked >>> vote_for_son account01 sonaccount08 "bitcoin" true true unlocked >>> vote_for_son account01 sonaccount08 "hive" true true unlocked >>> vote_for_son account01 sonaccount08 "ethereum" true true ``` ``` unlocked >>> get_active_sons get_active_sons [[ "bitcoin",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" } ] ],[ "ethereum",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "03a13a989af30c92ad7abd1e6210308a6c96f373" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" } ] ],[ "hive",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "sonaccount08" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" } ] ] ] ```
wsalloum commented 2022-12-02 17:11:27 +00:00 (Migrated from gitlab.com)

Deposit ETH throws exception, it was working fine before I pulled the last changes

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest   test_eth_son.py::test_eth_deposit
======================================================================================================== test session starts ========================================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 1 item                                                                                                                                                                                                                    

test_eth_son.py F                                                                                                                                                                                                             [100%]

============================================================================================================= FAILURES ==============================================================================================================
_________________________________________________________________________________________________________ test_eth_deposit __________________________________________________________________________________________________________

    def test_eth_deposit():
        # Setup deposit parameters
        deposit_amount = 2
    
        # Find out SON-related addresses
        sidechain_deposit_addr = pp_get_sidechain_address_by_account_and_sidechain(
            ACCOUNT_PP, "ethereum")["deposit_address"]
        pw_addr = pp_get_active_son_primary_wallet_address("ethereum")
    
        # Save initial balances
        balance0 = pp_get_account_balance(ACCOUNT_PP, "ETH")
        pw_balance0 = eth_call(pw_addr)
        eth_balance0 = eth_getBalance(sidechain_deposit_addr)
    
        # Save gas price before deposit transaction
        gasPrice = eth_gasPrice()
    
        # Prepare for the deposit transfer
        eth_unlock_account(sidechain_deposit_addr)
    
        # Make the deposit itself
>       transHash = eth_sendTransaction(
            sidechain_deposit_addr,
            pw_addr,
            deposit_amount *
            ETH_PRECISION)

test_eth_son.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ethereum_utils.py:66: in eth_sendTransaction
    _hash = eth_send_command(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_method = 'eth_sendTransaction', _params = [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}]

    def eth_send_command(_method, _params):
        req = {
            "jsonrpc": "2.0",
            "method": _method,
            "params": _params,
            "id": 1}
        json_obj = convert_byte_output_to_json(
            requests.post(URL, json=req).content)
        print(CMD_LOG_PREFIX + "Ethereum command:\n{} {}\n-->\n{}\n".format(_method,
                                                                            _params, json.dumps(json_obj)))
>       return json_obj["result"]
E       KeyError: 'result'

ethereum_utils.py:37: KeyError
------------------------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------------------------

*************** Peerplays command:
get_sidechain_address_by_account_and_sidechain account01 ethereum
-->
{
  "id": "1.38.16",
  "sidechain_address_account": "1.2.52",
  "sidechain": "ethereum",
  "deposit_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "deposit_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "deposit_address_data": "",
  "withdraw_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "withdraw_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "valid_from": "2022-12-01T15:03:03",
  "expires": "2106-02-07T06:28:15"
}


*************** Peerplays command:
get_active_son_wallet
-->
{
  "id": "1.35.1",
  "valid_from": "2022-12-02T16:40:00",
  "expires": "2106-02-07T06:28:15",
  "addresses": [[
      "ethereum",
      "0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e"
    ]
  ],
  "sons": [[
      "bitcoin",[{
          "son_id": "1.33.7",
          "weight": 1,
          "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
          "public_key": "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.7",
          "weight": 1,
          "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
          "public_key": "03a13a989af30c92ad7abd1e6210308a6c96f373"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.7",
          "weight": 1,
          "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t",
          "public_key": "sonaccount08"
        },{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "sonaccount04"
        }
      ]
    ]
  ]
}


*************** Peerplays command:
list_account_balances account01
-->
49999950 TEST
0 ETH
1000000 PBTC
1000000 PEOS
1000000 PETH



*************** Ethereum command:
eth_call [{'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'data': '0x12065fe0'}, 'latest']
-->
{"jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000000000000000000"}


*************** Ethereum command:
eth_getBalance ['0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'latest']
-->
{"jsonrpc": "2.0", "id": 1, "result": "0xde0b6b3a7640000"}


*************** Ethereum command:
eth_gasPrice []
-->
{"jsonrpc": "2.0", "id": 1, "result": "0x3b9aca07"}


*************** Ethereum command:
eth_sendTransaction [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}]
-->
{"jsonrpc": "2.0", "id": 1, "error": {"code": -32000, "message": "insufficient funds for transfer"}}

====================================================================================================== short test summary info ======================================================================================================
FAILED test_eth_son.py::test_eth_deposit - KeyError: 'result'
======================================================================================================== 1 failed in 11.36s ====
Deposit ETH throws exception, it was working fine before I pulled the last changes ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit ======================================================================================================== test session starts ======================================================================================================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 1 item test_eth_son.py F [100%] ============================================================================================================= FAILURES ============================================================================================================== _________________________________________________________________________________________________________ test_eth_deposit __________________________________________________________________________________________________________ def test_eth_deposit(): # Setup deposit parameters deposit_amount = 2 # Find out SON-related addresses sidechain_deposit_addr = pp_get_sidechain_address_by_account_and_sidechain( ACCOUNT_PP, "ethereum")["deposit_address"] pw_addr = pp_get_active_son_primary_wallet_address("ethereum") # Save initial balances balance0 = pp_get_account_balance(ACCOUNT_PP, "ETH") pw_balance0 = eth_call(pw_addr) eth_balance0 = eth_getBalance(sidechain_deposit_addr) # Save gas price before deposit transaction gasPrice = eth_gasPrice() # Prepare for the deposit transfer eth_unlock_account(sidechain_deposit_addr) # Make the deposit itself > transHash = eth_sendTransaction( sidechain_deposit_addr, pw_addr, deposit_amount * ETH_PRECISION) test_eth_son.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ethereum_utils.py:66: in eth_sendTransaction _hash = eth_send_command( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _method = 'eth_sendTransaction', _params = [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}] def eth_send_command(_method, _params): req = { "jsonrpc": "2.0", "method": _method, "params": _params, "id": 1} json_obj = convert_byte_output_to_json( requests.post(URL, json=req).content) print(CMD_LOG_PREFIX + "Ethereum command:\n{} {}\n-->\n{}\n".format(_method, _params, json.dumps(json_obj))) > return json_obj["result"] E KeyError: 'result' ethereum_utils.py:37: KeyError ------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------- *************** Peerplays command: get_sidechain_address_by_account_and_sidechain account01 ethereum --> { "id": "1.38.16", "sidechain_address_account": "1.2.52", "sidechain": "ethereum", "deposit_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "deposit_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "deposit_address_data": "", "withdraw_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "withdraw_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "valid_from": "2022-12-01T15:03:03", "expires": "2106-02-07T06:28:15" } *************** Peerplays command: get_active_son_wallet --> { "id": "1.35.1", "valid_from": "2022-12-02T16:40:00", "expires": "2106-02-07T06:28:15", "addresses": [[ "ethereum", "0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e" ] ], "sons": [[ "bitcoin",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "0266065b27f7e3d3ad45b471b1cd4e02de73fc4737dc2679915a45e293c5adcf84" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" } ] ],[ "ethereum",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "03a13a989af30c92ad7abd1e6210308a6c96f373" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" } ] ],[ "hive",[{ "son_id": "1.33.7", "weight": 1, "signing_key": "TEST51nSJ2q1C9htnYWfTv73JxEc4nBWPNxJtUGPGpD4XwxeLzAd8t", "public_key": "sonaccount08" },{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" } ] ] ] } *************** Peerplays command: list_account_balances account01 --> 49999950 TEST 0 ETH 1000000 PBTC 1000000 PEOS 1000000 PETH *************** Ethereum command: eth_call [{'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'data': '0x12065fe0'}, 'latest'] --> {"jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000000000000000000"} *************** Ethereum command: eth_getBalance ['0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'latest'] --> {"jsonrpc": "2.0", "id": 1, "result": "0xde0b6b3a7640000"} *************** Ethereum command: eth_gasPrice [] --> {"jsonrpc": "2.0", "id": 1, "result": "0x3b9aca07"} *************** Ethereum command: eth_sendTransaction [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}] --> {"jsonrpc": "2.0", "id": 1, "error": {"code": -32000, "message": "insufficient funds for transfer"}} ====================================================================================================== short test summary info ====================================================================================================== FAILED test_eth_son.py::test_eth_deposit - KeyError: 'result' ======================================================================================================== 1 failed in 11.36s ==== ```
vampik commented 2022-12-05 06:43:29 +00:00 (Migrated from gitlab.com)

mentioned in commit 8527035ca49abca5f13d192face62e5f4d4640bd

mentioned in commit 8527035ca49abca5f13d192face62e5f4d4640bd
vampik commented 2022-12-05 07:47:00 +00:00 (Migrated from gitlab.com)

mentioned in commit 98905e2c876f20f9ca9b4c061c2ed3fc70c6c275

mentioned in commit 98905e2c876f20f9ca9b4c061c2ed3fc70c6c275
vampik commented 2022-12-06 05:45:48 +00:00 (Migrated from gitlab.com)

mentioned in merge request !188

mentioned in merge request !188
wsalloum commented 2022-12-06 22:25:59 +00:00 (Migrated from gitlab.com)

@vampik ETH deposit is ok now, but the ETH fees is 0

unlocked >>> eth_estimate_withdrawal_transaction_fee 
eth_estimate_withdrawal_transaction_fee 
"0 ETH"

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit  test_eth_son.py::test_eth_withdrawal
======================================================================================== test session starts =========================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                                    

test_eth_son.py ..                                                                                                                                                                             [100%]

=================================================================================== 2 passed in 130.14s (0:02:10) ====================================================================================
bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_hive_son.py::test_hive_deposit test_hive_son.py::test_hive_withdrawal
======================================================================================== test session starts =========================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                                    

test_hive_son.py ..                                                                                                                                                                            [100%]

========================================================================================= 2 passed in 32.41s =========================================================================================
bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py::test_btc_deposit test_btc_son.py::test_btc_withdrawal
======================================================================================== test session starts =========================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                                    

test_btc_son.py ..                                                                                                                                                                             [100%]

========================================================================================= 2 passed in 53.73s ===============
@vampik ETH deposit is ok now, but the ETH fees is 0 ``` unlocked >>> eth_estimate_withdrawal_transaction_fee eth_estimate_withdrawal_transaction_fee "0 ETH" ``` ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit test_eth_son.py::test_eth_withdrawal ======================================================================================== test session starts ========================================================================================= platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_eth_son.py .. [100%] =================================================================================== 2 passed in 130.14s (0:02:10) ==================================================================================== bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_hive_son.py::test_hive_deposit test_hive_son.py::test_hive_withdrawal ======================================================================================== test session starts ========================================================================================= platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_hive_son.py .. [100%] ========================================================================================= 2 passed in 32.41s ========================================================================================= bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py::test_btc_deposit test_btc_son.py::test_btc_withdrawal ======================================================================================== test session starts ========================================================================================= platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_btc_son.py .. [100%] ========================================================================================= 2 passed in 53.73s =============== ```
vampik commented 2022-12-07 05:39:58 +00:00 (Migrated from gitlab.com)

@wsalloum

Please provide from what commit you are building your witness_node?

@wsalloum Please provide from what commit you are building your `witness_node`?
vampik commented 2022-12-07 05:41:03 +00:00 (Migrated from gitlab.com)

MR for this fix hasn't been merged to develop yet:

https://gitlab.com/PBSA/peerplays/-/merge_requests/188

Did you build witness_node from this branch?

https://gitlab.com/PBSA/peerplays/-/tree/feature/479-one-bunch-transaction

MR for this fix hasn't been merged to develop yet: https://gitlab.com/PBSA/peerplays/-/merge_requests/188 Did you build `witness_node` from this branch? https://gitlab.com/PBSA/peerplays/-/tree/feature/479-one-bunch-transaction
wsalloum commented 2022-12-07 17:02:01 +00:00 (Migrated from gitlab.com)

@vampik When I use the branch https://gitlab.com/PBSA/peerplays/-/tree/feature/479-one-bunch-transaction , I get fees for ETH, but I get error when I do deposit

unlocked >>> eth_estimate_withdrawal_transaction_fee 
eth_estimate_withdrawal_transaction_fee 
"0.00013800 ETH"
unlocked >>> 

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit 
======================================================================================================== test session starts ========================================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 1 item                                                                                                                                                                                                                    

test_eth_son.py F                                                                                                                                                                                                             [100%]

============================================================================================================= FAILURES ==============================================================================================================
_________________________________________________________________________________________________________ test_eth_deposit __________________________________________________________________________________________________________

    def test_eth_deposit():
        # Setup deposit parameters
        deposit_amount = 2
    
        # Find out SON-related addresses
        sidechain_deposit_addr = pp_get_sidechain_address_by_account_and_sidechain(
            ACCOUNT_PP, "ethereum")["deposit_address"]
        pw_addr = pp_get_active_son_primary_wallet_address("ethereum")
    
        # Save initial balances
        balance0 = pp_get_account_balance(ACCOUNT_PP, "ETH")
        pw_balance0 = eth_call(pw_addr)
        eth_balance0 = eth_getBalance(sidechain_deposit_addr)
    
        # Save gas price before deposit transaction
        gasPrice = eth_gasPrice()
    
        # Prepare for the deposit transfer
        eth_unlock_account(sidechain_deposit_addr)
    
        # Make the deposit itself
>       transHash = eth_sendTransaction(
            sidechain_deposit_addr,
            pw_addr,
            deposit_amount *
            ETH_PRECISION)

test_eth_son.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ethereum_utils.py:66: in eth_sendTransaction
    _hash = eth_send_command(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_method = 'eth_sendTransaction', _params = [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}]

    def eth_send_command(_method, _params):
        req = {
            "jsonrpc": "2.0",
            "method": _method,
            "params": _params,
            "id": 1}
        json_obj = convert_byte_output_to_json(
            requests.post(URL, json=req).content)
        print(CMD_LOG_PREFIX + "Ethereum command:\n{} {}\n-->\n{}\n".format(_method,
                                                                            _params, json.dumps(json_obj)))
>       return json_obj["result"]
E       KeyError: 'result'

ethereum_utils.py:37: KeyError
------------------------------------------------------------------------------------------------------- Captured stdout call --------------------------------------------------------------------------------------------------------

*************** Peerplays command:
get_sidechain_address_by_account_and_sidechain account01 ethereum
-->
{
  "id": "1.38.16",
  "sidechain_address_account": "1.2.52",
  "sidechain": "ethereum",
  "deposit_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "deposit_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "deposit_address_data": "",
  "withdraw_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "withdraw_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae",
  "valid_from": "2022-12-07T16:49:27",
  "expires": "2106-02-07T06:28:15"
}


*************** Peerplays command:
get_active_son_wallet
-->
{
  "id": "1.35.0",
  "valid_from": "2022-12-07T16:50:00",
  "expires": "2106-02-07T06:28:15",
  "addresses": [[
      "bitcoin",
      "{\n    \"address\": \"bcrt1qkncreuvqc6rn8zp5u75rfdh537lsscnlwrq0xzeqgkmzg7202cpsywt3h2\",\n    \"redeemScript\": \"007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a2\"\n}\n"
    ],[
      "ethereum",
      "0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e"
    ]
  ],
  "sons": [[
      "bitcoin",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666"
        }
      ]
    ],[
      "ethereum",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "76ce31bd03f601c3fc13732def921c5bac282676"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "09ee460834498a4ee361beb819470061b7381b49"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7"
        }
      ]
    ],[
      "hive",[{
          "son_id": "1.33.0",
          "weight": 1,
          "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL",
          "public_key": "sonaccount01"
        },{
          "son_id": "1.33.1",
          "weight": 1,
          "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs",
          "public_key": "sonaccount02"
        },{
          "son_id": "1.33.2",
          "weight": 1,
          "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r",
          "public_key": "sonaccount03"
        },{
          "son_id": "1.33.3",
          "weight": 1,
          "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22",
          "public_key": "sonaccount04"
        },{
          "son_id": "1.33.4",
          "weight": 1,
          "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU",
          "public_key": "sonaccount05"
        }
      ]
    ]
  ]
}


*************** Peerplays command:
list_account_balances account01
-->
49999950 TEST
1 ETH
1000000 PBTC
1000000 PEOS
1000000 PETH



*************** Ethereum command:
eth_call [{'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'data': '0x12065fe0'}, 'latest']
-->
{"jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000"}


*************** Ethereum command:
eth_getBalance ['0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'latest']
-->
{"jsonrpc": "2.0", "id": 1, "result": "0xde0b6b3a7640000"}


*************** Ethereum command:
eth_gasPrice []
-->
{"jsonrpc": "2.0", "id": 1, "result": "0x3b9aca07"}


*************** Ethereum command:
eth_sendTransaction [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}]
-->
{"jsonrpc": "2.0", "id": 1, "error": {"code": -32000, "message": "insufficient funds for transfer"}}

====================================================================================================== short test summary info ======================================================================================================
FAILED test_eth_son.py::test_eth_deposit - KeyError: 'result'
======================================================================================================== 1 failed in 11.36s ==
@vampik When I use the branch https://gitlab.com/PBSA/peerplays/-/tree/feature/479-one-bunch-transaction , I get fees for ETH, but I get error when I do deposit ``` unlocked >>> eth_estimate_withdrawal_transaction_fee eth_estimate_withdrawal_transaction_fee "0.00013800 ETH" unlocked >>> ``` ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit ======================================================================================================== test session starts ======================================================================================================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 1 item test_eth_son.py F [100%] ============================================================================================================= FAILURES ============================================================================================================== _________________________________________________________________________________________________________ test_eth_deposit __________________________________________________________________________________________________________ def test_eth_deposit(): # Setup deposit parameters deposit_amount = 2 # Find out SON-related addresses sidechain_deposit_addr = pp_get_sidechain_address_by_account_and_sidechain( ACCOUNT_PP, "ethereum")["deposit_address"] pw_addr = pp_get_active_son_primary_wallet_address("ethereum") # Save initial balances balance0 = pp_get_account_balance(ACCOUNT_PP, "ETH") pw_balance0 = eth_call(pw_addr) eth_balance0 = eth_getBalance(sidechain_deposit_addr) # Save gas price before deposit transaction gasPrice = eth_gasPrice() # Prepare for the deposit transfer eth_unlock_account(sidechain_deposit_addr) # Make the deposit itself > transHash = eth_sendTransaction( sidechain_deposit_addr, pw_addr, deposit_amount * ETH_PRECISION) test_eth_son.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ethereum_utils.py:66: in eth_sendTransaction _hash = eth_send_command( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _method = 'eth_sendTransaction', _params = [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}] def eth_send_command(_method, _params): req = { "jsonrpc": "2.0", "method": _method, "params": _params, "id": 1} json_obj = convert_byte_output_to_json( requests.post(URL, json=req).content) print(CMD_LOG_PREFIX + "Ethereum command:\n{} {}\n-->\n{}\n".format(_method, _params, json.dumps(json_obj))) > return json_obj["result"] E KeyError: 'result' ethereum_utils.py:37: KeyError ------------------------------------------------------------------------------------------------------- Captured stdout call -------------------------------------------------------------------------------------------------------- *************** Peerplays command: get_sidechain_address_by_account_and_sidechain account01 ethereum --> { "id": "1.38.16", "sidechain_address_account": "1.2.52", "sidechain": "ethereum", "deposit_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "deposit_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "deposit_address_data": "", "withdraw_public_key": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "withdraw_address": "0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae", "valid_from": "2022-12-07T16:49:27", "expires": "2106-02-07T06:28:15" } *************** Peerplays command: get_active_son_wallet --> { "id": "1.35.0", "valid_from": "2022-12-07T16:50:00", "expires": "2106-02-07T06:28:15", "addresses": [[ "bitcoin", "{\n \"address\": \"bcrt1qkncreuvqc6rn8zp5u75rfdh537lsscnlwrq0xzeqgkmzg7202cpsywt3h2\",\n \"redeemScript\": \"007c2103456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275ac635193687c2102d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4ac635193687c21025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61ac635193687c210228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866ac635193687c21037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666ac6351936854a2\"\n}\n" ],[ "ethereum", "0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e" ] ], "sons": [[ "bitcoin",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "03456772301e221026269d3095ab5cb623fc239835b583ae4632f99a15107ef275" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "02d67c26cf20153fe7625ca1454222d3b3aeb53b122d8a0f7d32a3dd4b2c2016f4" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "025f7cfda933516fd590c5a34ad4a68e3143b6f4155a64b3aab2c55fb851150f61" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "0228155bb1ddcd11c7f14a2752565178023aa963f84ea6b6a052bddebad6fe9866" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "037500441cfb4484da377073459511823b344f1ef0d46bac1efd4c7c466746f666" } ] ],[ "ethereum",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "5fbbb31be52608d2f52247e8400b7fcaa9e0bc12" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "76ce31bd03f601c3fc13732def921c5bac282676" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "09ee460834498a4ee361beb819470061b7381b49" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "6aefbd09209e1ee2e0a589d31e732f69b77713d2" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "631e128b16f9adcf1bb6385112b1519c917d77a7" } ] ],[ "hive",[{ "son_id": "1.33.0", "weight": 1, "signing_key": "TEST8TCQFzyYDp3DPgWZ24261fMPSCzXxVyoF3miWeTj6JTi2DZdrL", "public_key": "sonaccount01" },{ "son_id": "1.33.1", "weight": 1, "signing_key": "TEST82qv1LKFvwVKD9pg5JQf6qqwLcoeqUniQjWJ3wKTodyWa7gHUs", "public_key": "sonaccount02" },{ "son_id": "1.33.2", "weight": 1, "signing_key": "TEST6xdp7MrEPnaNK9GuF3KTeTizgGN6JC5nPmxx81higFepSZ8N7r", "public_key": "sonaccount03" },{ "son_id": "1.33.3", "weight": 1, "signing_key": "TEST55j32Up75gHCxJBPN18vEytL9anDgEVFtsaCii38keGQG71X22", "public_key": "sonaccount04" },{ "son_id": "1.33.4", "weight": 1, "signing_key": "TEST68bX5bB16GkEAig6w2WTh9NbM9nHa66CemnDRx2njRY9bbWXhU", "public_key": "sonaccount05" } ] ] ] } *************** Peerplays command: list_account_balances account01 --> 49999950 TEST 1 ETH 1000000 PBTC 1000000 PEOS 1000000 PETH *************** Ethereum command: eth_call [{'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'data': '0x12065fe0'}, 'latest'] --> {"jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000"} *************** Ethereum command: eth_getBalance ['0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'latest'] --> {"jsonrpc": "2.0", "id": 1, "result": "0xde0b6b3a7640000"} *************** Ethereum command: eth_gasPrice [] --> {"jsonrpc": "2.0", "id": 1, "result": "0x3b9aca07"} *************** Ethereum command: eth_sendTransaction [{'from': '0x5c79a9f5767e3c1b926f963fa24e21d8a04289ae', 'to': '0x572eA65762bFFf521C11Ce5334FfaaF4bDD4974e', 'value': '0x1BC16D674EC80000'}] --> {"jsonrpc": "2.0", "id": 1, "error": {"code": -32000, "message": "insufficient funds for transfer"}} ====================================================================================================== short test summary info ====================================================================================================== FAILED test_eth_son.py::test_eth_deposit - KeyError: 'result' ======================================================================================================== 1 failed in 11.36s == ```
vampik commented 2022-12-07 17:22:31 +00:00 (Migrated from gitlab.com)

@wsalloum
So this is not an error from witness_node. This is an error in your test script.

Your balance is 0xde0b6b3a7640000 = 1000000000000000000

And you're trying to send 0x1BC16D674EC80000 = 2000000000000000000 (which is greater than your balance).

So you get error insufficient funds for transfer ...

@wsalloum So this is not an error from `witness_node`. This is an error in your test script. Your balance is `0xde0b6b3a7640000` = `1000000000000000000` And you're trying to send `0x1BC16D674EC80000` = `2000000000000000000` (which is greater than your balance). So you get error `insufficient funds for transfer` ...
vampik commented 2022-12-08 05:02:44 +00:00 (Migrated from gitlab.com)

mentioned in issue #488

mentioned in issue #488
vampik commented 2022-12-08 14:02:53 +00:00 (Migrated from gitlab.com)

mentioned in commit ab1e08a756

mentioned in commit ab1e08a7566ab5dd62322909a7b473492b65f029
serkixenos commented 2022-12-08 14:02:54 +00:00 (Migrated from gitlab.com)

mentioned in commit 249276b009

mentioned in commit 249276b009602792e572b1af4d4810b08402d8ae
wsalloum commented 2022-12-09 12:09:45 +00:00 (Migrated from gitlab.com)

It seems ok after merge, I tested manually :

locked >>> eth_estimate_withdrawal_transaction_fee 
eth_estimate_withdrawal_transaction_fee 
"0.00013800 ETH"
locked >>> list_account_balances account01
list_account_balances account01
49999950 TEST
1000000 PBTC
1000000 PEOS
1000000 PETH

locked >>> list_account_balances son-account
list_account_balances son-account


unlocked >>> transfer account01 son-account 1 ETH true true 
transfer account01 son-account 1 ETH true true 
{
  "ref_block_num": 799,
  "ref_block_prefix": 1673419109,
  "expiration": "2022-12-09T11:59:18",
  "operations": [[
      0,{
        "fee": {
          "amount": 0,
          "asset_id": "1.3.0"
        },
        "from": "1.2.52",
        "to": "1.2.19",
        "amount": {
          "amount": 100000000,
          "asset_id": "1.3.2"
        },
        "memo": {
          "from": "TEST73rCkGNinnNSqJprEf6vXb6fiH9opF2DHVjbq2kutF8BH2n12a",
          "to": "TEST1111111111111111111111111111111114T1Anm",
          "nonce": 0,
          "message": "0000000074727565"
        },
        "extensions": []
      }
    ]
  ],
  "extensions": [],
  "signatures": [
    "2067804de5e7e4311085d60352953d23d63dc130bcc92627ee9927903327a3278336544e1e63e1805fb25bba66b27182a700cd4e48e4953893a5453eff11c23297"
  ]
}


unlocked >>> list_account_balances account01                 
list_account_balances account01
49999950 TEST
1 ETH
1000000 PBTC
1000000 PEOS
1000000 PETH

unlocked >>> list_account_balances son-account               
list_account_balances son-account
1 ETH

And the automated tests are ok too

bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit  test_eth_son.py::test_eth_withdrawal
====================================================================================== test session starts ======================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                               

test_eth_son.py ..                                                                                                                                                                        [100%]

================================================================================= 2 passed in 127.60s (0:02:07) =======
bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py::test_btc_deposit  test_btc_son.py::test_btc_withdrawal
====================================================================================== test session starts ======================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                               

test_btc_son.py ..                                                                                                                                                                        [100%]

====================================================================================== 2 passed in 53.39s =======================================================================================
bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_hive_son.py::test_hive_deposit test_hive_son.py::test_hive_withdrawal
====================================================================================== test session starts ======================================================================================
platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests
collected 2 items                                                                                                                                                                               

test_hive_son.py ..                                                                                                                                                                       [100%]

====================================================================================== 2 passed in 30.70s =====
It seems ok after merge, I tested manually : ``` locked >>> eth_estimate_withdrawal_transaction_fee eth_estimate_withdrawal_transaction_fee "0.00013800 ETH" ``` ``` locked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 1000000 PBTC 1000000 PEOS 1000000 PETH locked >>> list_account_balances son-account list_account_balances son-account unlocked >>> transfer account01 son-account 1 ETH true true transfer account01 son-account 1 ETH true true { "ref_block_num": 799, "ref_block_prefix": 1673419109, "expiration": "2022-12-09T11:59:18", "operations": [[ 0,{ "fee": { "amount": 0, "asset_id": "1.3.0" }, "from": "1.2.52", "to": "1.2.19", "amount": { "amount": 100000000, "asset_id": "1.3.2" }, "memo": { "from": "TEST73rCkGNinnNSqJprEf6vXb6fiH9opF2DHVjbq2kutF8BH2n12a", "to": "TEST1111111111111111111111111111111114T1Anm", "nonce": 0, "message": "0000000074727565" }, "extensions": [] } ] ], "extensions": [], "signatures": [ "2067804de5e7e4311085d60352953d23d63dc130bcc92627ee9927903327a3278336544e1e63e1805fb25bba66b27182a700cd4e48e4953893a5453eff11c23297" ] } unlocked >>> list_account_balances account01 list_account_balances account01 49999950 TEST 1 ETH 1000000 PBTC 1000000 PEOS 1000000 PETH unlocked >>> list_account_balances son-account list_account_balances son-account 1 ETH ``` And the automated tests are ok too ``` bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_eth_son.py::test_eth_deposit test_eth_son.py::test_eth_withdrawal ====================================================================================== test session starts ====================================================================================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_eth_son.py .. [100%] ================================================================================= 2 passed in 127.60s (0:02:07) ======= bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_btc_son.py::test_btc_deposit test_btc_son.py::test_btc_withdrawal ====================================================================================== test session starts ====================================================================================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_btc_son.py .. [100%] ====================================================================================== 2 passed in 53.39s ======================================================================================= bunker@backend-qa:~/peerplays-utils/peerplays-qa-environment/e2e-tests$ pytest test_hive_son.py::test_hive_deposit test_hive_son.py::test_hive_withdrawal ====================================================================================== test session starts ====================================================================================== platform linux -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 rootdir: /home/bunker/peerplays-utils/peerplays-qa-environment/e2e-tests collected 2 items test_hive_son.py .. [100%] ====================================================================================== 2 passed in 30.70s ===== ```
wsalloum (Migrated from gitlab.com) closed this issue 2022-12-09 12:09:46 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#479
No description provided.