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

support exfiltration of virtual ops via json rpc without current AH implementation #2099

Closed
sneak opened this issue Feb 9, 2018 · 3 comments

Comments

@sneak
Copy link
Contributor

sneak commented Feb 9, 2018

No description provided.

@sneak
Copy link
Contributor Author

sneak commented Feb 9, 2018

clarity: exfiltration via json-rpc response - so a new api call or modified get_ops_in_block api call.

@vogel76
Copy link
Contributor

vogel76 commented Feb 16, 2018

Implemented account_history_api.enum_virtual_ops method taking following parameters:

  • block_range_begin - number of block (inclusive), starting the block range, the virtual ops should be iterated from
  • block_range_end - number of block (exclusive), ending the block range, the virtual ops should be iterated from
    So the call:
{"jsonrpc": "2.0", "method": "call", "params": ["account_history_api","enum_virtual_ops",{"block_range_begin": 1, "block_range_end": 100}], "id": 2}

will retrieve all virt. ops existing in blocks [1..100).
Method returns pair: collection of operations (as ops member) and number of next block starting block range containing any virt. op as next_block_range_begin. If there is no more virt. ops next_block_range_begin will be set to 0.
Example result set:

{
	"jsonrpc": "2.0",
	"result": {
		"ops": [
			{
				"trx_id": "0000000000000000000000000000000000000000",
				"block": 1,
				"trx_in_block": 0,
				"op_in_trx": 0,
				"virtual_op": 0,
				"timestamp": "2016-03-24T16:05:00",
				"op": [
					"producer_reward",
					{
						"producer": "initminer",
						"vesting_shares": [
							"1000000",
							6,
							"@@000000037"
						]
					}
				]
			}
		],
		"next_block_range_begin": 1093
	},
	"id": 2
}

@vogel76
Copy link
Contributor

vogel76 commented Mar 29, 2018

@youkaicountry This probably can be closed as this code has been merged by @mvandeberg into develop.

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

3 participants