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

Default labels broken #1602

Closed
kyuupichan opened this issue Jan 4, 2016 · 2 comments
Closed

Default labels broken #1602

kyuupichan opened this issue Jan 4, 2016 · 2 comments
Assignees

Comments

@kyuupichan
Copy link
Contributor

9d3162b broke it I believe.

@ecdsa
Copy link
Member

ecdsa commented Jan 4, 2016

I restored the original behaviour, without the flag, here:
bd309cf

@kyuupichan
Copy link
Contributor Author

Thanks this is fixed for me.

ecdsa added a commit that referenced this issue Oct 22, 2016
Toporin pushed a commit to Toporin/electrum-satochip that referenced this issue Sep 25, 2019
Closes spesmilo#1494, see PR for details.

 Commit log:
---

* initial refactor
* more refactor
* nits
* nit
* tweaks
* added tests
* fixed tests to pass
* nits in slp test
* added OP_RETURN build ScriptOutput tests
* nit

* Added slp.WalletData stub. Needs rethinking

* tweaks

* Tweak

* added WalletData rough sketch

* Moved the module lib/slp.py into a package in lib/slp/

This will allow us to add various pieces such as the
slp_validator_0x1.py and other things in the future.

* renamed lib/slp/base.py -> lib/slp/slp.py

* Added miminal slp.WalletData implementation

This implementation does the bare minimum of maintainting fast data
structures and keeps track of the things we need right now for SLP
awareness to prevent tokens.

We give this provisional data layout slp_data_version '3.9' which should
cause EC-SLP to rebuild slp data when switching between this and EC-SLP.

In the future we will add more structure to this data when we enable
validation.

Regardless -- we need to do away with the EC-SLP data layout as it is
somewhat inefficient.

* got rid of an extraneous TODO

* Hooked SLP WalletData class into wallet.py

wallet.slp is the attribute. It seems to work well and keep track of SLP
utxos. Next up -- GUI support.

* Added SLP awareness to the UI

- wallet.get_utxos() defaults to excluding SLP tokens from all spends.
This should make it impossible to burn SLP tokens from a UI action.

- Indicate SLP tokens on coins in the coins tab using green.

- Indicate SLP tokens in CashShuffle by labeling them as such in column
5 (they never get shuffled, even if they have sufficient amount on them)

* nit

* nit

* Reoarganized how the data is saved to wallet.storage

Everything goes into a great big dict named 'slp' in wallet.storage.
This way someone editing the file can have an easier time.

* nit

* fixed typo

* Minor nit and speedup

* slp.WalletData.load: Simplified to make the method more readable

We flattened it out and rely on asserts more since now the main EC
backend guarantees 'assert' is available.

The code in .load is more readable now, IMHO
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

2 participants