Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollupClientError when attempting to transfer tez between implicit accounts. #36

Open
rafoo opened this issue Dec 5, 2023 · 1 comment
Assignees

Comments

@rafoo
Copy link

rafoo commented Dec 5, 2023

I'm trying to use the "rollupnet" instance of Tezos-on-tezos but I did not manage to perform a simple transfer between implicit accounts using Octez client.

Steps to reproduce:

$ rm -rf ~/.tezos-client/
$ octez-client -E https://rollupnet.zaun.baking-bad.org import secret key bootstrap1 unencrypted:edsk3gUfUPyBSfrS9CCgmCiQsTCHGkviBDusMxDJstFtojtc1zcpsh
$ octez-client -E https://rollupnet.zaun.baking-bad.org import secret key bootstrap2 unencrypted:edsk39qAm1fiMjgmPkw1EgQYkMzkJezLNewd7PLNHTkr6w9XA2zdfo
$ ./octez-client -E https://rollupnet.zaun.baking-bad.org get balance for bootstrap1
40000000 ꜩ
$ octez-client -l --protocol PtNairob -E https://rollupnet.zaun.baking-bad.org transfer 1 from bootstrap1 to bootstrap2
>>>>0: https://rollupnet.zaun.baking-bad.org/version
<<<<0: 200 OK
  { "version": { "major": 0, "minor": 0, "additional_info": "dev" },
    "network_version":
      { "chain_name": "TEZOS-ROLLUP-2023-02-08T00:00:00.000Z",
        "distributed_db_version": 0, "p2p_version": 0 },
    "commit_info":
      { "commit_hash": "00000000",
        "commit_date": "2023-02-08 00:00:00 +0000" } }
Warning:
  
                 This is NOT the Tezos Mainnet.
  
           Do NOT use your fundraiser keys on this network.

>>>>1: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/protocols
<<<<1: 200 OK
  { "protocol": "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK",
    "next_protocol": "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK" }
Warning:
  The protocol provided via `--protocol` (PtNairobiyss)
  is not the one retrieved from the node (ProtoALphaAL).

>>>>2: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/context/contracts/tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx/counter
<<<<2: 200 OK
  "0"
>>>>3: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/context/contracts/tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx/manager_key
<<<<3: 200 OK
  null
>>>>4: https://rollupnet.zaun.baking-bad.org/monitor/bootstrapped
<<<<4: 200 OK
  { "hash": "BLFp2GkLumq7eSzYLhuxHQ3U7jxFfoH1ejEBCbnqeJ7EhzbxPh5",
    "timestamp": "2023-07-31T22:51:06+00:00" }
Node is bootstrapped.
>>>>5: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/context/constants
<<<<5: 200 OK
  { "proof_of_work_nonce_size": 8, "nonce_length": 32,
    "max_anon_ops_per_block": 132, "max_operation_data_length": 86400,
    "max_proposals_per_delegate": 20, "max_micheline_node_count": 50000,
    "max_micheline_bytes_limit": 50000,
    "max_allowed_global_constants_depth": 10000, "cache_layout_size": 3,
    "michelson_maximum_type_size": 2001,
    "smart_rollup_max_wrapped_proof_binary_size": 30000,
    "smart_rollup_message_size_limit": 4096,
    "smart_rollup_max_number_of_messages_per_level": "1000000",
    "preserved_cycles": 5, "blocks_per_cycle": 8096,
    "blocks_per_commitment": 128, "nonce_revelation_threshold": 512,
    "blocks_per_stake_snapshot": 1024, "cycles_per_voting_period": 5,
    "hard_gas_limit_per_operation": "1040000",
    "hard_gas_limit_per_block": "5200000",
    "proof_of_work_threshold": "70368744177663",
    "minimal_stake": "6000000000", "vdf_difficulty": "8000000000",
    "seed_nonce_revelation_tip": "125000", "origination_size": 257,
    "baking_reward_fixed_portion": "5000000",
    "baking_reward_bonus_per_slot": "2143",
    "endorsing_reward_per_slot": "1428", "cost_per_byte": "250",
    "hard_storage_limit_per_operation": "60000", "quorum_min": 2000,
    "quorum_max": 7000, "min_proposal_quorum": 500,
    "liquidity_baking_subsidy": "1250000",
    "liquidity_baking_toggle_ema_threshold": 1000000000,
    "max_operations_time_to_live": 240, "minimal_block_delay": "15",
    "delay_increment_per_round": "8", "consensus_committee_size": 7000,
    "consensus_threshold": 4667,
    "minimal_participation_ratio": { "numerator": 2, "denominator": 3 },
    "max_slashing_period": 2, "frozen_deposits_percentage": 10,
    "double_baking_punishment": "640000000",
    "ratio_of_frozen_deposits_slashed_per_double_endorsement":
      { "numerator": 1, "denominator": 2 }, "cache_script_size": 100000000,
    "cache_stake_distribution_cycles": 8, "cache_sampler_state_cycles": 8,
    "tx_rollup_enable": false, "tx_rollup_origination_size": 4000,
    "tx_rollup_hard_size_limit_per_inbox": 500000,
    "tx_rollup_hard_size_limit_per_message": 5000,
    "tx_rollup_max_withdrawals_per_batch": 15,
    "tx_rollup_commitment_bond": "10000000000",
    "tx_rollup_finality_period": 40000, "tx_rollup_withdraw_period": 40000,
    "tx_rollup_max_inboxes_count": 40100,
    "tx_rollup_max_messages_per_inbox": 1010,
    "tx_rollup_max_commitments_count": 80100,
    "tx_rollup_cost_per_byte_ema_factor": 120,
    "tx_rollup_max_ticket_payload_size": 2048,
    "tx_rollup_rejection_max_proof_size": 30000,
    "tx_rollup_sunset_level": 3473409,
    "dal_parametric":
      { "feature_enable": false, "number_of_slots": 256,
        "attestation_lag": 1, "attestation_threshold": 50,
        "blocks_per_epoch": 1, "redundancy_factor": 16, "page_size": 4096,
        "slot_size": 1048576, "number_of_shards": 2048 },
    "smart_rollup_enable": false, "smart_rollup_arith_pvm_enable": false,
    "smart_rollup_origination_size": 6314,
    "smart_rollup_challenge_window_in_blocks": 80640,
    "smart_rollup_stake_amount": "10000000000",
    "smart_rollup_commitment_period_in_blocks": 60,
    "smart_rollup_max_lookahead_in_blocks": 172800,
    "smart_rollup_max_active_outbox_levels": 80640,
    "smart_rollup_max_outbox_messages_per_level": 100,
    "smart_rollup_number_of_sections_in_dissection": 32,
    "smart_rollup_timeout_period_in_blocks": 40320,
    "smart_rollup_max_number_of_cemented_commitments": 5,
    "smart_rollup_max_number_of_parallel_games": 32,
    "zk_rollup_enable": false, "zk_rollup_origination_size": 4000,
    "zk_rollup_min_pending_to_process": 10 }
>>>>6: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head~2/hash
<<<<6: 200 OK
  "BLpyTTVHXyN2JaFJ7c3dQKPinedKDh1mm6Tnd4pihgAxDwVxAzb"
>>>>7: https://rollupnet.zaun.baking-bad.org/chains/main/chain_id
<<<<7: 200 OK
  "NetXcv2Hga2mmWC"
>>>>8: https://rollupnet.zaun.baking-bad.org/chains/main/chain_id
<<<<8: 200 OK
  "NetXcv2Hga2mmWC"
>>>>9: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/helpers/scripts/simulate_operation
  { "operation":
      { "branch": "BLpyTTVHXyN2JaFJ7c3dQKPinedKDh1mm6Tnd4pihgAxDwVxAzb",
        "contents":
          [ { "kind": "reveal",
              "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "0",
              "counter": "1", "gas_limit": "1040000",
              "storage_limit": "60000",
              "public_key":
                "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav" },
            { "kind": "transaction",
              "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "0",
              "counter": "2", "gas_limit": "1040000",
              "storage_limit": "60000", "amount": "1000000",
              "destination": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" } ] },
    "chain_id": "NetXcv2Hga2mmWC" }
<<<<9: 200 OK
  { "signature":
      "sigMzJ4GVAvXEd2RjsKGfG2H9QvqTSKCZsuB2KiHbZRGFz72XgF6KaKADznh674fQgBatxw3xdHqTtMHUZAGRprxy64wg1aq",
    "contents":
      [ { "kind": "reveal", "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
          "fee": "0", "counter": "1", "gas_limit": "1040000",
          "storage_limit": "60000",
          "public_key":
            "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav",
          "metadata":
            { "operation_result":
                { "status": "applied", "consumed_milligas": "0" },
              "balance_updates":
                [ { "kind": "contract", "change": "-0",
                    "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                    "origin": "block" } ] } },
        { "kind": "transaction",
          "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "0",
          "counter": "2", "gas_limit": "1040000", "storage_limit": "60000",
          "amount": "1000000",
          "destination": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
          "metadata":
            { "operation_result":
                { "status": "applied",
                  "balance_updates":
                    [ { "kind": "contract", "change": "-1000000",
                        "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                        "origin": "block" },
                      { "kind": "contract", "change": "1000000",
                        "contract": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
                        "origin": "block" } ], "consumed_milligas": "0" },
              "balance_updates":
                [ { "kind": "contract", "change": "-0",
                    "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                    "origin": "block" } ], "internal_operation_results": [] } } ] }
Estimated gas: none
Estimated storage: no bytes added
Estimated gas: none
Estimated storage: no bytes added
>>>>10: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head~2/hash
<<<<10: 200 OK
  "BLpyTTVHXyN2JaFJ7c3dQKPinedKDh1mm6Tnd4pihgAxDwVxAzb"
>>>>11: https://rollupnet.zaun.baking-bad.org/chains/main/chain_id
<<<<11: 200 OK
  "NetXcv2Hga2mmWC"
>>>>12: https://rollupnet.zaun.baking-bad.org/chains/main/blocks/head/helpers/preapply/operations?version=0
  [ { "protocol": "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",
      "branch": "BLpyTTVHXyN2JaFJ7c3dQKPinedKDh1mm6Tnd4pihgAxDwVxAzb",
      "contents":
        [ { "kind": "reveal",
            "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "256",
            "counter": "1", "gas_limit": "0", "storage_limit": "0",
            "public_key":
              "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav" },
          { "kind": "transaction",
            "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "153",
            "counter": "2", "gas_limit": "0", "storage_limit": "0",
            "amount": "1000000",
            "destination": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN" } ],
      "signature":
        "edsigtzGPnU6VXvCNk8QVVkq99q6SKb8MhAQWaa4CtJneDrYqXN3ZXDtL7nbRoMbV6uVrrHr9DW1m5EyTzY9HuWAKChtyJ1dk9N" } ]
<<<<12: 200 OK
  [ { "signature":
        "edsigtzGPnU6VXvCNk8QVVkq99q6SKb8MhAQWaa4CtJneDrYqXN3ZXDtL7nbRoMbV6uVrrHr9DW1m5EyTzY9HuWAKChtyJ1dk9N",
      "contents":
        [ { "kind": "reveal",
            "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "256",
            "counter": "1", "gas_limit": "0", "storage_limit": "0",
            "public_key":
              "edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav",
            "metadata":
              { "operation_result":
                  { "status": "applied", "consumed_milligas": "0" },
                "balance_updates":
                  [ { "kind": "contract", "change": "-256",
                      "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                      "origin": "block" } ] } },
          { "kind": "transaction",
            "source": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx", "fee": "153",
            "counter": "2", "gas_limit": "0", "storage_limit": "0",
            "amount": "1000000",
            "destination": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
            "metadata":
              { "operation_result":
                  { "status": "applied",
                    "balance_updates":
                      [ { "kind": "contract", "change": "-1000000",
                          "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                          "origin": "block" },
                        { "kind": "contract", "change": "1000000",
                          "contract": "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
                          "origin": "block" } ], "consumed_milligas": "0" },
                "balance_updates":
                  [ { "kind": "contract", "change": "-153",
                      "contract": "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx",
                      "origin": "block" } ],
                "internal_operation_results": [] } } ] } ]
>>>>13: https://rollupnet.zaun.baking-bad.org/injection/operation?chain=main
  "92e3f98fdea6e57cbaafd3d79332a0ceec9055475e47274163a1354b5f9922396b0002298c03ed7d454a101eb7022bc95f7e5f41ac788002010000004798d2cc98473d7e250c898885718afd2e4efbcb1a1595ab9730761ed830de0f6c0002298c03ed7d454a101eb7022bc95f7e5f41ac789901020000c0843d0000e7670f32038107a59a2b9cfefae36ea21f5aa63c00ca3e3cba5c302f48c5b96dff4b1e814718a01d0460eb01b50872fdd6632ecb05ea0a93eadb684c1dce9cd9f1452c2234be2a2534f126664c63715ba5c5e38c0c"
Rpc request failed:
   - meth: POST
   - uri: https://rollupnet.zaun.baking-bad.org/injection/operation?chain=main
   - error: The server answered with a media type we do not understand: text/plain.
            The response body was:
            RollupClientError {
    status: 500,
}
Fatal error:
  transfer simulation failed
@m-kus m-kus self-assigned this Dec 5, 2023
@rafoo
Copy link
Author

rafoo commented Dec 8, 2023

This seems specific to the rollupnet instance; on a local installation, the transfer is included and applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants