Commit Graph

14 Commits

Author SHA1 Message Date
Nikolaj Kuntner cb1e5bdddf
rpc code simplifications (#6059)
* init

* nicer end to elif chain

* newlines after returns in elif chain

* pass comments

* error_msg

* simple error res
2021-05-26 11:15:26 -07:00
ChiaMineJP bc439fea7c
Removed dead code (#5244) 2021-05-24 11:55:19 -07:00
Yostra 108647112c
Wallet (#4887)
* spent height

* handle generator reorg

* tx cache

* coin cache

* rebuild cache if write fails

* save last few messages new_peak while syncing

* don't use dupe func

* tx reorg test

* lock not needed

* lint

* lock

* modify properly

* this shouldn't hit a disk ever

* use same number

* notify wallet only once, lock when getting a balance

* lock only if unspent coin records is None

* assert spent

* lint

* Add test for prev generator

Co-authored-by: Mariano <sorgente711@gmail.com>
2021-05-19 12:06:48 -07:00
Chris Marslender 536d33ef59
second check should be fee, not amount again (#4112) 2021-05-12 10:49:48 -07:00
Chris Marslender 4fc32cb5a8
Add pending coin removal count (#4509) 2021-05-11 09:40:49 -07:00
Nikolaj Kuntner cbc9141689
add all none's (#4503)
Co-authored-by: Nikolaj Kuntner <>
2021-05-10 22:05:45 -07:00
Chris Marslender 61baae5648 Add unspent coin count to wallet balance API 2021-05-09 13:21:38 -07:00
Mariano Sorgente fe257cdfe1
Improve wallet consistency (#3305)
* Improve wallet consistency

* Improve CLI significantly, and fix self-tx balances

* Fix await

* Fix deadlock and test

* Remove spam.sh
2021-05-01 15:13:04 -04:00
Almog De Paz 6af86811e5
fix unconfirmed tx race (#2266)
* add tx lock

* init lock

* call with async
2021-04-21 10:41:18 -07:00
Lipa 3313edd7b4
Did for merge (#2144)
* rebase DID off main

* fix indentation and imports

* lint fixes

* fix test_compilation paths for new puzzles

* added _init__.py for did_wallet

* mypy typing fixes

* included did_wallet in setup.py module list

* stored pubkey & puzhash so that recovery_spend can choose not take them

* black missing comma

* add wallet id to return in get recovery info

* remove bad try statement

* fix DID recovery

* lint formatting, blacked

* use theirs for macos installer

Co-authored-by: matt <matt@chia.net>
2021-04-19 16:16:31 -04:00
Mariano Sorgente bca75b2859
Fix freeze RPC (#2053) 2021-04-18 10:51:30 -07:00
Yostra 03784c9cd5
WhenMainnet (#2011)
* timestamp

* freeze

* root

* prepare for mainnet

* lint

* update constants

* starting diff

* remove breakpoint
2021-04-17 23:57:58 -07:00
matt-o-how 5e1bf6d5f3
Merge DID into main (#1720)
* rebase DID off main

* fix indentation and imports

* lint fixes

* fix test_compilation paths for new puzzles

* added _init__.py for did_wallet

* mypy typing fixes

* included did_wallet in setup.py module list

* stored pubkey & puzhash so that recovery_spend can choose not take them

* black missing comma
2021-04-06 19:31:44 -07:00
Richard Kiss f2b577dda1 `git mv src chia` 2021-04-04 21:41:39 -07:00