Skip to content

#14 basic mempool implementation #65

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

Merged
merged 46 commits into from
Jul 17, 2019
Merged

Conversation

iltoga
Copy link
Contributor

@iltoga iltoga commented Jul 16, 2019

Description

First implementation of the mempool logic.

Breakdown

  • mempoolCoreService: service layer where most of the business logic resides: get/add/delete/select mempool transactions
  • mempoolQuery: db repository layer where all db queries are
  • mempool.proto: mempool model
  • blockchainProcessor: added tx selection from mempool when generating new blocks and logic to include transactions (tx payoload) in a block
  • blockCoreService: added method to remove (delete from db) mempool tx once the relative block is pushed

Reference Issue

Close #14

Step to Test (optional)

  • just run normal test suite with "go test ./..." from project root

stefano galassi and others added 30 commits July 9, 2019 12:38
implmentation  of mempoolCoreService (still to be tested)
added logic to pass in payload to blockchainprocessor when generating blocks
@iltoga iltoga self-assigned this Jul 16, 2019
stefano galassi added 3 commits July 16, 2019 11:11
… blockservice because part of PushBlock method

fixed unit tests
added to transactionUtil function to calculate transaction ID from transaction model
stefano galassi added 2 commits July 17, 2019 12:28
fixed parse transaction bytes: added checks if bytes we are parsing are formally correct while reading them
@iltoga iltoga requested a review from astaphobia July 17, 2019 04:38
stefano galassi added 3 commits July 17, 2019 14:34
@andy-shi88 andy-shi88 mentioned this pull request Jul 17, 2019
12 tasks
@andy-shi88
Copy link
Contributor

is this PR final? need to merge this one, I need some functionality that's already here for PR: #74

@astaphobia astaphobia merged commit 317012a into develop Jul 17, 2019
@astaphobia astaphobia deleted the 14-basic-mempool-implementation branch July 17, 2019 10:17
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

Successfully merging this pull request may close these issues.

Tech: basic mempool implementation. Transaction validation and selection for block creation process
4 participants