Get_blocks function requires changes #96

Closed
opened 2021-05-12 01:17:00 +00:00 by cryptosig · 10 comments
cryptosig commented 2021-05-12 01:17:00 +00:00 (Migrated from gitlab.com)
  1. The regular API calls from witness_node should have get_blocks capability to serve multiple blocks from a single api call. Calling multiple get_block calls one at a time is both time consuming and wastes resources.

  2. the get_blocks as written does not have a maximum amount that is allowed to be called, this is bad. This allows for ddos attacks by trying to pull all 39 million blocks from a node, potentially crashing said node.

1. The regular API calls from witness_node should have get_blocks capability to serve multiple blocks from a single api call. Calling multiple get_block calls one at a time is both time consuming and wastes resources. 2. the get_blocks as written does not have a maximum amount that is allowed to be called, this is bad. This allows for ddos attacks by trying to pull all 39 million blocks from a node, potentially crashing said node.
cryptosig commented 2021-05-12 06:58:48 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
sierra19XX commented 2021-05-12 11:58:53 +00:00 (Migrated from gitlab.com)

assigned to @sierra19XX

assigned to @sierra19XX
sierra19XX commented 2021-05-13 22:51:58 +00:00 (Migrated from gitlab.com)

assigned to @bobinson

assigned to @bobinson
sierra19XX commented 2021-05-13 22:52:05 +00:00 (Migrated from gitlab.com)

unassigned @sierra19XX

unassigned @sierra19XX
bobinson commented 2021-05-14 07:55:27 +00:00 (Migrated from gitlab.com)
https://gitlab.com/PBSA/peerplays/-/merge_requests/18
hbelakon commented 2021-05-14 13:12:18 +00:00 (Migrated from gitlab.com)

@bobinson you moved this ticket to "accepted" state because you rejected changes or by mistake?

@bobinson you moved this ticket to "accepted" state because you rejected changes or by mistake?
hbelakon commented 2021-05-14 13:13:51 +00:00 (Migrated from gitlab.com)

it has been merged.... according to @sierra19XX it is "complete" .... I am moving it into "complete" status- but could you please confirm that it is "complete" ? Thanks!

it has been merged.... according to @sierra19XX it is "complete" .... I am moving it into "complete" status- but could you please confirm that it is "complete" ? Thanks!
sierra19XX commented 2021-05-14 13:15:54 +00:00 (Migrated from gitlab.com)

changed time estimate to 12h

changed time estimate to 12h
hbelakon (Migrated from gitlab.com) closed this issue 2021-05-14 13:20:33 +00:00
bobinson commented 2021-05-14 13:59:08 +00:00 (Migrated from gitlab.com)

@hbelakon - its completed. I was supposed to moved to completed status.

@hbelakon - its completed. I was supposed to moved to completed status.
sierra19XX commented 2021-07-27 05:00:45 +00:00 (Migrated from gitlab.com)

mentioned in merge request !25

mentioned in merge request !25
Sign in to join this conversation.
No milestone
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#96
No description provided.