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

Unify generics code #297

Closed
wants to merge 15 commits into from

Conversation

hsequeda
Copy link
Collaborator

@hsequeda hsequeda commented Dec 24, 2019

Fixes #290

Changes:
-Added Iterator interface.
-Implementing Iterator interface in util packege with GenericIterator type.
-Replaced all old iterators implementation for GenericIterator.
-Added test and comments for GenericIterator type.

Does this change need to mentioned in CHANGELOG.md?
no

Requires testing
Requires testing
no

Comments about testing , should you have some

…rator interface in generic.go file in core package. Created genericIterator.go file in util package. Added GenericIterator type implemented Iterator interface in genericIterator.go file in util package. Implemented CurrentData, HasNext and Next methods of GenericIterator type in util package. Created NewGenericIterator function in util package.
…ype using

util.GenericIterator in cipher.go file in skycoin package. Created NewSkycoinAddressIterator function in cipher.go file in skycoin package. Reimplemented all SkycoinAddressIterator implementation.
…queda_t290_Generic

# Conflicts:
#	src/models/modelWallets.go
@olemis
Copy link
Contributor

olemis commented Dec 24, 2019

@stdevHsequeda good , will take a look into this shortly

@olemis olemis added this to In progress in FiberCrypto wallet - Iteration 2 via automation Dec 24, 2019
@olemis olemis added this to the next milestone Dec 24, 2019
@olemis olemis changed the base branch from develop to next December 24, 2019 04:53
FiberCrypto wallet - Iteration 2 automation moved this from In progress to Review in progress Dec 24, 2019

// Iterator defines a generic iterator.
type Iterator interface {
CurrentData(interface{}) error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs be changed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To Value() interface?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

AntiD2ta and others added 2 commits December 26, 2019 16:53
Returns if call to ScanUnspentOutputs fails
…elWallets.loadModel ...

... rather than halting the cycle
@olemis olemis added the core Core interfaces label Dec 30, 2019
@olemis
Copy link
Contributor

olemis commented Jan 22, 2020

I'm starting to hesitate about whether moving forward with this is a good idea

@olemis
Copy link
Contributor

olemis commented Feb 10, 2020

I am not satisfied with the approaches I've seen so far ... Let's keep things the way they are now and reopen this should situation change at some point later

@olemis olemis closed this Feb 10, 2020
FiberCrypto wallet - Iteration 2 automation moved this from Review in progress to Done Feb 10, 2020
@olemis olemis added the wontfix This will not be worked on label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core interfaces wontfix This will not be worked on
Development

Successfully merging this pull request may close these issues.

None yet

4 participants