From a53dadf1d448d522828a3113d1a37c513809e912 Mon Sep 17 00:00:00 2001 From: mtrela <mtrela@syncad.com> Date: Mon, 23 Nov 2020 13:04:19 +0100 Subject: [PATCH] Mock blocks with reblog operations - part 1 --- mock_data/block_data/reblog_op/flow.txt | 77 ++ .../reblog_op/mock_block_data_reblog.json | 1201 +++++++++++++++++ scripts/ci/hive-sync.sh | 2 +- scripts/ci_sync.sh | 2 +- 4 files changed, 1280 insertions(+), 2 deletions(-) create mode 100644 mock_data/block_data/reblog_op/flow.txt create mode 100644 mock_data/block_data/reblog_op/mock_block_data_reblog.json diff --git a/mock_data/block_data/reblog_op/flow.txt b/mock_data/block_data/reblog_op/flow.txt new file mode 100644 index 000000000..f559f0c2b --- /dev/null +++ b/mock_data/block_data/reblog_op/flow.txt @@ -0,0 +1,77 @@ +***block 4999999*** +account_create_operation( `test-reblog-01` ) +account_create_operation( `test-reblog-02` ) +account_create_operation( `test-reblog-03` ) +account_create_operation( `test-reblog-04` ) +account_create_operation( `test-reblog-05` ) +account_create_operation( `test-reblog-06` ) +comment_operation( `test-reblog-01`, `parrot-01`) +comment_operation( `test-reblog-02`, `parrot-02`) +comment_operation( `test-reblog-03`, `parrot-03`) +comment_operation( `test-reblog-04`, `parrot-04`) +comment_operation( `test-reblog-05`, `parrot-05`) +comment_operation( `test-reblog-06`, `parrot-06`) +***block 5000000*** +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}") +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}") +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}") + +***block 5000001*** +custom_json_operation("{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-01\",\"permlink\":\"parrot-01\"}") +custom_json_operation("{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}") +custom_json_operation("{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}") +custom_json_operation("{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}") +custom_json_operation("{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}") +custom_json_operation("{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +***block 5000002*** +custom_json_operation("{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +custom_json_operation("{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}") +custom_json_operation("{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}") +***block 5000003*** +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-06\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +***block 5000004*** +custom_json_operation("{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +custom_json_operation("{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}") +custom_json_operation("{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}") +delete_comment_operation(`test-reblog-04`, `parrot-04`) +delete_comment_operation(`test-reblog-05`, `parrot-05`) +***block 5000005*** +delete_comment_operation(`test-reblog-06`, `parrot-06`) +comment_operation( `test-reblog-01`, `monkey-01`) +comment_operation( `test-reblog-01`, `monkey-02`) +comment_operation( `test-reblog-01`, `monkey-03`) +comment_operation( `test-reblog-01`, `monkey-04`) +comment_operation( `test-reblog-01`, `monkey-05`) +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-01\"}") +delete_comment_operation(`test-reblog-01`, `monkey-01`) +***block 5000006*** +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}") +custom_json_operation("{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}") +custom_json_operation("{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}") +***block 5000007*** +delete_comment_operation(`test-reblog-01`, `monkey-02`) +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-03\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}") +custom_json_operation("{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}") +custom_json_operation("{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}") +custom_json_operation("{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}") +custom_json_operation("{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-05\"}") +***block 5000008*** +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}") +custom_json_operation("{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}") +custom_json_operation("{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}") +***block 5000009*** +delete_comment_operation(`test-reblog-01`, `monkey-04`) +***block 5000010*** +***block 5000011*** diff --git a/mock_data/block_data/reblog_op/mock_block_data_reblog.json b/mock_data/block_data/reblog_op/mock_block_data_reblog.json new file mode 100644 index 000000000..ef3d12063 --- /dev/null +++ b/mock_data/block_data/reblog_op/mock_block_data_reblog.json @@ -0,0 +1,1201 @@ +{ + "4999999": { + "previous": "004c4b3e03ea2eac2494790786bfb9e41a8669d9", + "timestamp": "2016-09-15T19:47:18", + "witness": "", + "transaction_merkle_root": "", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100000, + "ref_block_prefix": 0, + "expiration": "2020-03-23T12:08:00", + "operations": [ + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-01", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-02", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-03", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-04", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-05", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "test-safari", + "new_account_name": "test-reblog-06", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "", + 1 + ] + ] + }, + "memo_key": "", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "parrot-01", + "title": "I love parrots 01", + "body": "tell me about parrots 01", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-02", + "permlink": "parrot-02", + "title": "I love parrots 02", + "body": "tell me about parrots 02", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-03", + "permlink": "parrot-03", + "title": "I love parrots 03", + "body": "tell me about parrots 03", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-04", + "permlink": "parrot-04", + "title": "I love parrots 04", + "body": "tell me about parrot 04", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-05", + "permlink": "parrot-05", + "title": "I love parrots 05", + "body": "tell me about parrot 05", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-06", + "permlink": "parrot-06", + "title": "I love parrots 06", + "body": "tell me about parrot 06", + "json_metadata": "{}" + } + } + ], + "extensions": [], + "signatures": [ + "" + ] + } + ], + "block_id": "004c4b3fc6a8735b4ab5433d59f4526e4a042644", + "signing_key": "", + "transaction_ids": [] + }, + "5000000": { + "previous": "004c4b3fc6a8735b4ab5433d59f4526e4a042644", + "timestamp": "2016-09-15T19:47:21", + "witness": "initminer", + "transaction_merkle_root": "", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-01\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}" + } + } + ] + } + ], + "block_id": "004c4b40245ffb07380a393fb2b3d841b76cdaec", + "signing_key": "", + "transaction_ids": [] + }, + "5000001": { + "previous": "004c4b40245ffb07380a393fb2b3d841b76cdaec", + "timestamp": "2016-09-15T19:47:24", + "witness": "initminer", + "transaction_merkle_root": "", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-01\",\"permlink\":\"parrot-01\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-02\",\"permlink\":\"parrot-02\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-03\",\"permlink\":\"parrot-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + } + ] + } + ], + "block_id": "004c4b4100000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000002": { + "previous": "004c4b4100000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:27", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}" + } + } + ] + } + ], + "block_id": "004c4b4200000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000003": { + "previous": "004c4b4200000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:30", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-06\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}" + } + } + ] + } + ], + "block_id": "004c4b4300000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000004": { + "previous": "004c4b4300000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:33", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-06\",\"permlink\":\"parrot-06\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-06\",\"author\":\"test-reblog-05\",\"permlink\":\"parrot-05\"}" + } + }, + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-04", + "permlink": "parrot-04" + } + }, + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-05", + "permlink": "parrot-05" + } + } + ] + } + ], + "block_id": "004c4b4400000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000005": { + "previous": "004c4b4400000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:36", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-06", + "permlink": "parrot-06" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "monkey-01", + "title": "I love monkeys 01", + "body": "tell me about monkeys 01", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "monkey-02", + "title": "I love monkeys 02", + "body": "tell me about monkeys 02", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "monkey-03", + "title": "I love monkeys 03", + "body": "tell me about monkeys 03", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "monkey-04", + "title": "I love monkeys 04", + "body": "tell me about monkeys 04", + "json_metadata": "{}" + } + }, + { + "type": "comment_operation", + "value": { + "parent_author": "", + "parent_permlink": "", + "author": "test-reblog-01", + "permlink": "monkey-05", + "title": "I love monkeys 05", + "body": "tell me about monkeys 05", + "json_metadata": "{}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-01\"}" + } + }, + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-01", + "permlink": "monkey-01" + } + } + ] + } + ], + "block_id": "004c4b4500000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000006": { + "previous": "004c4b4500000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:39", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-02\"}" + } + } + ] + } + ], + "block_id": "004c4b4600000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000007": { + "previous": "004c4b4600000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:42", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-01", + "permlink": "monkey-02" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-03\",\"author\":\"test-reblog-04\",\"permlink\":\"parrot-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-01\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-02\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-03\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-04\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-03\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-05\"}" + } + } + ] + } + ], + "block_id": "004c4b4700000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000008": { + "previous": "004c4b4700000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:45", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "reblog", + "json": "{\"delete\":\"delete\",\"account\":\"test-reblog-05\",\"author\":\"test-reblog-01\",\"permlink\":\"monkey-04\"}" + } + } + ] + } + ], + "block_id": "004c4b4800000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000009": { + "previous": "004c4b4800000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:48", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "delete_comment_operation", + "value": { + "author": "test-reblog-01", + "permlink": "monkey-04" + } + } + ] + } + ], + "block_id": "004c4b4900000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + ] + } + + ] + }, + "5000010": { + "previous": "004c4b4900000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:51", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + ] + } + ], + "block_id": "004c4b4a00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000011": { + "previous": "004c4b4a00000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:54", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + ] + } + ], + "block_id": "004c4b4b00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000012": { + "previous": "004c4b4b00000000000000000000000000000000", + "timestamp": "2016-09-15T19:47:57", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b4c00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000013": { + "previous": "004c4b4c00000000000000000000000000000000", + "timestamp": "2016-09-15T19:48:00", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b4d00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000014": { + "previous": "004c4b4d00000000000000000000000000000000", + "timestamp": "2016-09-15T19:48:03", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b4e00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000015": { + "previous": "004c4b4e00000000000000000000000000000000", + "timestamp": "2016-09-15T19:48:06", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b4f00000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000016": { + "previous": "004c4b4f00000000000000000000000000000000", + "timestamp": "2016-09-15T19:48:09", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b5000000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + }, + "5000017": { + "previous": "004c4b5000000000000000000000000000000000", + "timestamp": "2016-09-15T19:48:12", + "witness": "initminer", + "transaction_merkle_root": "0000000000000000000000000000000000000000", + "extensions": [], + "witness_signature": "", + "transactions": [], + "block_id": "004c4b5100000000000000000000000000000000", + "signing_key": "", + "transaction_ids": [] + } +} diff --git a/scripts/ci/hive-sync.sh b/scripts/ci/hive-sync.sh index f558e4907..5d9b9f088 100755 --- a/scripts/ci/hive-sync.sh +++ b/scripts/ci/hive-sync.sh @@ -28,7 +28,7 @@ EOF --steemd-url "${RUNNER_HIVED_URL}" \ --prometheus-port 11011 \ --database-url "${DATABASE_URL}" \ - --mock-block-data-path mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json \ + --mock-block-data-path mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json mock_data/block_data/reblog_op/mock_block_data_reblog.json \ --community-start-block 4999998 \ 2>&1 | tee -i hivemind-sync.log diff --git a/scripts/ci_sync.sh b/scripts/ci_sync.sh index 0f50dccbf..c4aab0ab7 100755 --- a/scripts/ci_sync.sh +++ b/scripts/ci_sync.sh @@ -58,5 +58,5 @@ fi echo Attempting to starting hive sync using hived node: $HIVEMIND_SOURCE_HIVED_URL . Max sync block is: $HIVEMIND_MAX_BLOCK echo Attempting to access database $DB_URL -./$HIVE_NAME sync --pid-file hive_sync.pid --test-max-block=$HIVEMIND_MAX_BLOCK --exit-after-sync --test-profile=False --steemd-url "$HIVEMIND_SOURCE_HIVED_URL" --prometheus-port 11011 --database-url $DB_URL --mock-block-data-path mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json --community-start-block 4999998 2>&1 | tee -i hivemind-sync.log +./$HIVE_NAME sync --pid-file hive_sync.pid --test-max-block=$HIVEMIND_MAX_BLOCK --exit-after-sync --test-profile=False --steemd-url "$HIVEMIND_SOURCE_HIVED_URL" --prometheus-port 11011 --database-url $DB_URL --mock-block-data-path mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json mock_data/block_data/reblog_op/mock_block_data_reblog.json --community-start-block 4999998 2>&1 | tee -i hivemind-sync.log rm hive_sync.pid -- GitLab