Commit Graph

207 Commits

Author SHA1 Message Date
Chris Marslender
8a17252a35
Pin pyinstaller to a known working version for m1 (#7432) 2021-07-12 17:06:23 -07:00
Niraj Pathak
749cde1949 rename build script to match corresponding yml file 2021-07-02 15:17:08 -07:00
nirajpathak13
229ff7ab08
Split linux installers (#6987)
Move .rpm and .deb installers into individual workflows
2021-07-01 23:11:22 -04:00
Chris Marslender
75223a497f
M1 Installer (#7092) 2021-07-01 14:44:01 -05:00
Adam Kelly
89f7a4b3d6
Pools mainnet (#7047)
* added clarifying comments

* WIP test

* added WIP test

* Refine genesis challenge. Remove unnecessary pool_puzzle function

* Sign spend. Remove create_member_spend. Rename state transition function to create_travel_spend

* Rename create_member_spend to create_travel_spend

* Add singleton id logging

* Enhance logging for debugging

* renaming

* rephrase inside the puzzle

* fixed signing and added some support functions

* Fix issue with announcement

* Progress spending the singleton

* Fix arguments to pool_state_to_inner_puzzle call

* Fix arguments to pool_state_to_inner_puzzle

* Improve error message when wallet is not running

* Remove misleading message about missing wallet process, when problem is the farmer by making poolnft command error out earlier

* Fix parent coin info bug

* Multiple state transitions in one block

* Lint

* Remove assert

* Fix incorrect p2_singleton_ph calculation (thanks nil00)

* Update waiting room puzzle to accept genesis_challenge

* Update calls to create_waiting

* Go to waiting state from committed state

* Augment debug_spend_bundle

* fix 2 bugs in wallet

* Fix lint

* fix bad_agg_sig bug

* Tests and lint

* remove breakpoint

* fix clvm tests for new hexs and hashs

* Fixed a bug in the coin store that was probably from merging. (#6577)

* Fixed a bug in the coin store that was probably from merging.

* The exception doesn't need to be there

* CI Lint fix

* Added lifecycle tests for pooling drivers (#6610)

* Ms.poolabsorb (#6615)

* Support for absorbing rewards in pools (untested)

* Style improvements

* More work on absorb

* Revert default root and remove log

* Revert small plots

* Use real sub slot iters

* Update types

* debug1

* Fix bugs

* fix output of agg sig log messages

* Make fewer calls to pw_status in test

* remove old comment

* logging and state management

* logging

* small bug fix & rename for accuracy

* format

* Fix types for uncurry function

* lint

* Update test to use exceptions

* Change assumptions about self-pooling in lifecycle test

* Install types for mypy

* Revert "Install types for mypy"

This reverts commit a82dcb712a.

* install types for mypy

* install types for mypy

* More keys

* Remove flags requiring interactive prompts

* Change initial spend to waiting room if self-pooling

* lint

* lint

* linting

* Refactor test

* Use correct value in log message

* update p2_singleton_or_delated_puzhash

* initial version of pool wallet with p2_singleton_or_delay

* run black formatting

* fix rebase wonkiness

* fix announcement code in p2_singleton_or_delayed

* removed redundant defaulting
standardised hexstr handling

* lint fixes

* Fixed pool lifecycle tests to current standards, but discovered tests are not validating signatures

* Signatures validate on this test now although the test still does not check it.

* Lint fix

* Fixed plotnft show and linting errors

* fixed failing farmer/harvester rpc test

* lint fix

* Commenting out some outdated tests

* Updated test coverage

* lint fix

* Some minor P2singleton improvements (#6325)

* Improve some debugging tools.

* Tidy pool clvm.

* Use `SINGLETON_STRUCT`. Remove unused `and` macro.

* Use better name `SINGLETON_MOD_HASH`.

* Finish lifecycle test suite.

* Fixing for merge with chia-blockchain/pools_delayed_puzzle (#72)

Co-authored-by: Matt Hauff <quexington@gmail.com>

* Default delay time was being set incorrectly

* Extracted get_delayed_puz_info_from_launcher_spend to driver code

* Ms.taproot plot2 (#6692)

* Start work on adding taproot to new plots

* Fix issue in block_tools

* new test-cache

* Lint

* DID fixexs

* Fix other tests

* Python black

* Fix full node store test

* Ensure block index <= 128 bits.

* fix test_pool_config test

* fix comments in pool_config and in chialisp files

* self_pool -> pool -> self_pool

* Implement leaving pools

* Fix conflicts with main via mini-rebase

* Fixup rebase mistakes

* Bring in Mariano's node discovery chagnes from pools.dev

* Fix adapters - Thanks Richard

* build tests

* Add pools tests

* Disable DID tests

* farmer|protocol: Some renaming related to the pool protocol

* farmer: Use `None` instead of `{}` and add local `pool_state`

* protocol|farmer: Introduce and use `PoolErrorCode`

* rename: `pool_payout_instructions` -> `payout_instructions`

* refactor: `AuthenticationKeyInfo` -> `authentication_key`

* refactor: Move `launcher_id` up

* rename: Some variable name changes

* rename: `points_balance` -> `points`

* format: Squash aggregation into one line

* farmer: Make `update_pool_state` public

* farmer: Print traceback if `update_pool_state` fails

* farmer: Periodically call `GET /pool_info`, add `_pool_get_pool_info`

* farmer: Add `authentication_token_timeout` to `pool_state`

Fetch it from `GET /pool_info`

* protocol|farmer: Implement support for `GET|POST|PUT /farmer`

* farmer: Make use of `GET|POST /farmer`

- To make the farmer known by the pool
- To update local balance/difficulty from the pool periodically

* farmer|protocol: Adjust `POST /partial` to match the latest spec

* farmer: Hash messages before signing

* pools: Drop unused code

* farmer: Fix aggregation of partial signatures

* farmer: support self pooling, don't pool if url==""

* wallet: return uint64 for delay time, instead of bytes

* pool: add error code for delay time too short

* farmer: cleaner logging when no connection to pool

* farmer: add harvester node id to pool protocol

* Rename method (test fix) and lint fix

* Change errors to warnings (pool communication)

* Remove pool callbacks on a reorg

* farmer: Continue earlier when no pool URL is provided

* farmer: Print method in log

* farmer: Handle exceptions for all pool endpoint calls

* farmer|protocol: Keep track of failed requests to the pool

* farmer: Fix typo which caused issue with pooling

* wallet: simplify solution_to_extra_data

* tests: Comment out DID tests which are not working yet

* Remove DID Wallet test workflows

* Return launcher_id when creating Pool Wallet

* Name p2_singleton_puzzle_hash correctly

* Improve 'test_singleton_lifecycle_fast.py'.

* Make test more robust in the face of asynchronous adversity

* Add commandline cmds for joining and leaving pools

* Fix poolnft leave params

* Remove redundant assignment brought in from main

* Remove unneeded code

* Style and parsimony

* pool_puzzles: Check was wrong, and bad naming

* format: Fix linting

* format: Remove log and rename variable

* pool-wallet: Fix self pooling with multiple pool wallets. Don't remove interested puzzle_hash

* gui: Use pools branch

* format: fix lint

* Remove ununsed code, improve initial_pool_state_from_dict

* farmer: Instantly update the config, when config file changes

* format: Speed up loading of the authentication key

* logging: less annoying logging

* Test pool NFT creation directly to pool

* Test switching pools without self-farming in between

* lint

* pooling: Use integer for protocol version (#6797)

* pooling: Use integer for protocol version

* pooling: Fix import

* Update GUI commit

* Ms.login2 (#6804)

* pooling: Login WIP

* pooling: add RPC for get_link

* dont use timeout

* pooling: rename to get_login_link

* format: remove logging

* Fix SES test

* Required cli argument

Co-authored-by: almog <almogdepaz@gmail.com>

* farmer|protocols: Rename `current_difficulty` for `POST /partial` (#6807)

* Fix to farm summary

* Use target_puzzlehash param name in RPC call

* Pool test coverage (#6782)

* Improvement in test coverage and typing

* Added an extra absorb to the pool lifecycle test (only works when merged with https://github.com/Chia-Network/chia-blockchain/pull/6733)

* Added new drivers for the p2_singleton puzzles

* Added new tests and test coverage for singletons

* organize pools testing directory

* black formatting

* black formatting in venv

* lint fix

* Update CI tests

* Fixing tests post rebase

* lint fix

* Minor readability fix

Co-authored-by: matt <matt@chia.net>

* farmer: Drop `target_puzzle_hash` from `GET /farmer` and `GET /login` (#6816)

* Allow creation of PlotNFTs in self-farming state

* gui: Fix install with more RAM (#6821)

* Allow implicit payout_address in self-pool state, improve error messages and param ergonomics

* print units in non-standard wallets correctly

* Fix farmer import

* Make syncing message in CLI more intuitive like the GUI

* Fix linting and show header hash instead of height

* gui: Update to 725071236eff8c81d5b267dc8eb69d7e03f3df8c

* Revert "Merge"

This reverts commit 23a1e688c5, reversing
changes made to a850246c6f.

* Revert "Revert "Merge""

This reverts commit 680331859f.

* Treat tx_record as Dict. Refactor tx submission

* Also add passed-in coin spends when processing new blocks in reconsider_peak

* Test utilities had moved

* Fix import of moved block_tools

* Potentially fix yaml

* Previously didn't take the right part of this change

* Add -y flag, improve commandline plotnft handling

* Fix typo

* Add -y flag to plotnft create

* pool_wallet: Restore from DB properly

* wallet: ignore bad pool configs

* Reduce memory

* pool_wallet: Add claim command

* pool_wallet: Set transaction records to confirmed

* wallet: Fix bug in transaction cache

* Formatting and remove log

* pool_wallet: CLI balance and improvements to plotnft_funcs.py

* pool_wallet: Simplify, and fix issue with double submission

* pool_wallet: Fix tests

* pool_wallet: Don't allow switching before relative lock height

* update gui

* change to 3000 mem

* Correct sense of -y flag for self-pooling

* cli: Display payout instructions for pool

* pool_wallet: Don't create massive transactions

* cli: Improvements to plotnft

* pool_wallet: Get correct pool state

* pool_wallet: Use last transaction block to prevent condition failure

* Add block height for current state

* Add outstanding unconfirmed transactions to pw_status

* Refine command line plotnft show pending transactions

* Fix tests by using the correct output from pw_status

* Try to fix windows build

* Print expected leave height

* label pool urls

* pool_wallet: Don't include pool 1.75 rewards in total

* wallet: Add RPC and CLI for deleting unconfirmed transactions for a wallet

* pool_wallet: If farming to a pool, show 0 balance in wallet

* pool_wallet: Show error message if invalid state, in CLI

* pool_wallet: Don't allow switching if there are pending unconfirmed transactions

* tests: Clean up pool test logging

* tests: Fix lint

* Changed the pool innerpuzzes (#6802)

* overload solutions for pool_innerpuz parameters

* Fix tests for reduced size puzzles

* deleted messy deprecated test

* Fix lint.

* fix bug where spend types were the wrong way around

* merge with richard's lint fix

* fix wallet bug
remove unnecessary signature
add defun-inline for clarity

* Swap to defun for absorb case
Use cons box for member innerpuz solution

* fix if statement for cons box p1

* remove unnecessary solution arg

* quick innerpuz fix to make tests pass

* Switch to key-value pairs
Undo cons box solution in pool_member inner puzzle

* fix singleton lifecycle test

* added some comments to calrify the meaning on "ps"

* lint fix

* reduce label size, search for label when reconstructing from solution

* no need to keep looping if `p` found

* lint fix

* Removed unecessary defun-inline and changed hyphens to underscores

* Changed created_coin_value_or_0 to an inline function

* Changed morph_condition to an inline function

* Added a comment for odd_cons_m113

* Rename output_odd and odd_output_found

* Add inline functions to document the lineage proof values

* Stager two rewrite

* Added an ASSER_MY_AMOUNT to p2_singleton_or_delayed

* Extract truth functionality to singleton_truths.clib

* Fix tree hashes

* Changed truths to a struct rather than a list.

* fix test_singletons
update did_innerpuz

* recompile did_innerpuz

* fix a log error

* Renamed variable and factored out code per @richardkiss

* lint fix

* switch launcher extra_data to key_value pairs

* fix parsing of new format of extra_data in launcher solution

* fix broken test for new launcher solution format

* remove bare raise

Co-authored-by: Richard Kiss <him@richardkiss.com>
Co-authored-by: Matt Hauff <quexington@gmail.com>

* Also add passed-in coin spends when processing new blocks in reconsider_peak (#6898)

Co-authored-by: Adam Kelly <aqk>

* Moved debug_spend_bundle and added it to the SpendBundle object (#6840)

* Moved debug_spend_bundle and added it to the SpendBundle object

* Remove problematic typing

* Add testnet config

* wallet: Memory would get corrupted if there was an error (#6902)

* wallet: Memory would get corrupted if there was an error

* wallet: Use block_record

* wallet: Add records in a full fork too

* wallet: remove unnecessary arguments in CC and DID

* add to cache, revert if transaction fails

Co-authored-by: Yostra <straya@chia.net>

* Improve comment

* pool_wallet: Fix driver bug

* wallet: Fix memory corruption

* gui: Update to latest

* Increase memory size

* tests: Add test for absorbing from pool

* small fix in solution_to_extra_data

* Fixed incorrect function name

* pooling: Fix EOS handling in full node

* [pools.testnet9]add post /partial and /farmer header (#6957)

* Update farmer.py

add post header

* Update farmer_api.py

add post header

* Update chia/farmer/farmer.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update chia/farmer/farmer_api.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Fix lint and cleanup farmer.py

* farmer: Fix linting issues (#7010)

* Handle the case of incorrectly formatted PoolState data returned from inner singleton

* wallet: Resubmit transaction if not successful, rename to new_transaction_block_callback (#7008)

* Fix lint in pool_puzzles

* pooling: Fix owner private key lookup, and remove unnecessary argument

* pooling: Clear target state on `delete_unconfirmed_transactions`

* Lint

* Fix non-deterministic test

* Slight cleanup clvm driver code (#7028)

* Return None when a deserialized CLVM structure does not fit the expected format of var-value pair for singleton data

* lint

Co-authored-by: Adam Kelly <aqk>

* Revert "Add testnet config"

This reverts commit 9812442724.

Co-authored-by: matt <matt@chia.net>
Co-authored-by: Adam Kelly <aqk@aqk.im>
Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
Co-authored-by: Matt Hauff <quexington@gmail.com>
Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: Adam <aqk@Adams-MacBook-Pro.local>
Co-authored-by: Adam Kelly <aqk>
Co-authored-by: Richard Kiss <him@richardkiss.com>
Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: almog <almogdepaz@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
Co-authored-by: arvidn <arvid@libtorrent.org>
Co-authored-by: willi123yao <willi123yao@gmail.com>
Co-authored-by: arty <art.yerkes@gmail.com>
Co-authored-by: William Blanke <wjb98672@gmail.com>
Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
Co-authored-by: Yostra <straya@chia.net>
Co-authored-by: DouCrazy <43004977+lpf763827726@users.noreply.github.com>
2021-06-29 14:21:25 -07:00
Gene Hoffman
dc781169b9
Update all platforms to miniupnpc 2.2.2 and Windows to Python 3.9 (#6703)
* Update all platforms to miniupnpc 2.2.2 and Windows to Python 3.9

* Actually use python 3.9 in Windows
2021-06-14 08:21:12 -07:00
Nikolaj Kuntner
2faab1ea83
Improve style consistency in root directory docs files (#4493)
* Improve style consistency

* black python required blank

Co-authored-by: Nikolaj Kuntner <>
2021-05-12 13:12:30 -07:00
Gene Hoffman
9cc908678b
migrate/fix version info for installers now that we're semver (#1869)
* migrate/fix version info for installers now that we're semver

* black
2021-04-14 09:50:17 -07:00
Richard Kiss
7906d02990 Simplify pyinstaller.spec. Solve daemon/chia name collision. 2021-04-06 13:29:41 -07:00
Gene Hoffman
af6eb3e2c8 Remove daemon.spec 2021-04-04 23:10:50 -07:00
Richard Kiss
6cae9625f6 Fix linux build. 2021-04-04 21:41:39 -07:00
Richard Kiss
8a3e00548a Rename src to chia. 2021-04-04 21:41:39 -07:00
Gene Hoffman
ad7d7e0cce Add missing linux specfile change. Error on pyinstaller failure (#1668)
* Add missing linux specfile change. Error on pyinstaller failure

* Build ARM64 in Ubuntu 18.04 LTS

* It's apt upgrade...

* drop sudo

* install add-apt-repository

* missing -y

* Need python3.8-venv python3.8-distutils too

* python3.8 was not happy

* apt install even... Need curl

* git and others are missing

* need sudo to support sh install.sh

* debug venv

* Emulate install.sh instead

* still needs git...

* Need build essentials for pyinstaller

* pyinstaller needs zlib1g-dev

* need libpython3.8-dev

* don't use -e with pip install
2021-04-03 21:38:10 -07:00
Richard Kiss
986b103aba Use src.PYINSTALLER_SPEC_PATH in build scripts. 2021-04-02 19:50:54 -07:00
Richard Kiss
7a970b8fe7 Add PYINSTALLER_SPEC_PATH. Simplify & unify spec file. 2021-04-02 19:50:54 -07:00
Gene Hoffman
33efff1d5d First attempt at a .deb build (#1372)
* First attempt at a .deb build

* Actually run the linux installer.

* src and dest

* Lets use ubuntu to build the .deb...

* Better options to installer-debian

* package name of chia-blockchain

* chia-blockchain

* drop sudo

* chia-blockchain-x64 dir

* target amd64

* drop arch in packager

* Prepare for ARM64

* ARM64?

* Redhat and ARM take 2

* redhat in failure mode

* redhat version issue

* Limit ARM64 and try for both linux

* Use 18.04 for x86 and manylinux2014 for ARM64

* Add RH - ARM64 fix

* Try updated ARM64 podman, fix fake SCM version

* No sudo

* Install node correctly

* remove sudo

* Next time, save the changes...

* need epel for fakeroot

* Grrr -y

* Correct fake setuptools

* correct version number

* Remove quotes

* RH version fix?

* try revision 0

* Remove revision

* Don't set SCM_PRETEND
2021-03-24 15:41:53 -07:00
Richard Kiss
ddb92a0690 Spelling fix. 2021-03-24 15:41:53 -07:00
Gene Hoffman
b833fde8ab Fix versioning for 1.0.0, ping GUI, a little more installer time (#1356) 2021-03-17 18:40:45 -07:00
Gene Hoffman
3ca2b59eed Locale extraction and compiling is now part of run build (#1348) 2021-03-17 18:40:45 -07:00
Gene Hoffman
4697e39470
Various clean ups, spelling thanks @adamfiddler, isort (#1278)
* Various clean ups, spelling thanks @adamfiddler, isort

* Actually thank @adamfiddler

* isort tests

* Update changelog, readme, spec, spelling

* Readme nit

* locales

* locales again
2021-03-13 14:57:41 -08:00
Gene Hoffman
67f5cd5b92
spec file changes (#1266)
* spec file changes

* Clean up installer build process

* revert as PR 1267 is right
2021-03-12 15:19:33 -08:00
Gene Hoffman
d77bc07ac4 move from download.chia to pypi.chia.net/simple/ 2021-03-08 15:32:00 -08:00
Yostra
da9b9ccf6f
Mozilla ca (#1155)
* include moz

* add mozzila submodule

* install script

* use file path

* update commit

* typo
2021-03-04 14:25:35 -08:00
Yostra
3e77319eda
Pinned root cert (#1137)
* typo

* pin cert

* depricated warnning

* don't require 0x

* Fix lint issue w black and update GUI pin

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-03-03 17:26:26 -08:00
Gene Hoffman
c35021339f chiapos to 12.45 for harvester multithread fix 2021-02-23 23:20:21 -08:00
Gene Hoffman
2ef68723d7
Fix bad version numbering from scm for installers (#1029)
* Search for bad version numbering from scm

* pollution is in the sub repo. Dir to check

* test-cache fetch depth 1 - clean debug installers
2021-02-23 19:40:14 -08:00
Gene Hoffman
6518b2bf42
Changelog for RC2 (#965)
* Changelog for RC2

* Fix win and mac GHA installer versions
2021-02-18 22:34:46 -08:00
Gene Hoffman
e35e3305f3
Update changelog - remove cbor2 remnants - GUI main update (#897)
* Update changelog - remove cbor2 remnants - GUI main update

* Typo caught by @zhando
2021-02-11 00:04:00 -08:00
Gene Hoffman
0febb5136b
GUI to a separate repo (#859)
* GUI to a separate repo

* correct repo name, codeql to just python

* fetch-depth: 0 is indeed needed

* remove debug ls's

* Switch to a submodule

* update blockchain gitignore

* Return omitted cd to install-gui.sh
2021-02-07 20:39:59 -08:00
Yostra
3d27a7d660 Use TLS Certificate hash as node id ssl id (#740)
* create CA

* create CA chain, pin public, private, auth

* build scripts

* refactor rpc

* test logging
2021-02-04 01:27:59 -08:00
Gene Hoffman
c6b81af994 Catch failed download of miniupnpc (#821)
* Catch failed download of miniupnpc

* Reverting to Python 3.7 due to miniupnpc
2021-02-04 01:27:59 -08:00
dependabot[bot]
289c908adb Update setproctitle requirement from ~=1.1.10 to ~=1.2.2 (#752)
* Update setproctitle requirement from ~=1.1.10 to ~=1.2.2

Updates the requirements on [setproctitle](https://github.com/dvarrazzo/py-setproctitle) to permit the latest version.
- [Release notes](https://github.com/dvarrazzo/py-setproctitle/releases)
- [Changelog](https://github.com/dvarrazzo/py-setproctitle/blob/master/HISTORY.rst)
- [Commits](https://github.com/dvarrazzo/py-setproctitle/compare/version-1.1.10...version-1.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

* setproctitle now has binary wheels for all platforms except mac - PR'ed those to them and added to download.chia

* Just install local wheels

* update changelog
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
2021-02-04 01:27:59 -08:00
Gene Hoffman
19674acefc
Check for secrets on Azure. Fix GH Mac 2021-01-17 20:06:17 -08:00
Gene Hoffman
a9287467a8
Correctly handle mac installer build on fork PRs 2021-01-17 19:47:48 -08:00
Gene Hoffman
a68773bf18 Try pyinstaller 4.2 2021-01-14 16:26:14 -08:00
Gene Hoffman
27b28d62f6 add locale:extract and locale:fix 2021-01-12 17:02:23 -05:00
Gene Hoffman
a0f8fa7938 Throw errors if any step of macos installer build fails 2021-01-12 17:02:22 -05:00
Gene Hoffman
bb6cce5cfb Fix bash lint 2021-01-12 17:02:21 -05:00
Gene Hoffman
3dcadd57e5 Notarize MacOS DMG on GHA and Azure - Azure Python to 3.8 (#595)
* Attempt to Notarize .dmg on GHA and Azure

* Add missing env vars

* Better ci mgmt 

* Try Python 3.8 on Mojave

* Fix dmg filename
2021-01-12 17:02:21 -05:00
Gene Hoffman
5895cf238d no gatekeeper 2021-01-12 17:02:21 -05:00
Gene Hoffman
1b66ae2ab8 Fix MacOS signing 2021-01-12 17:02:21 -05:00
Mariano Sorgente
b7c131448b Consensus fix, full node store fixes, change sync, more linting 2021-01-12 17:00:53 -05:00
justinengland
81a1f27f93 adding configure 2021-01-12 17:00:50 -05:00
Gene Hoffman
de38aef744 Try pyinstaller-4.1 (#533) 2021-01-12 17:00:49 -05:00
Yostra
b084dcfb28 npm run buil 2021-01-12 17:00:49 -05:00
Gene Hoffman
55a1ad8ed1 shfmt various shell scripts, evaluate grep -c 2021-01-12 17:00:49 -05:00
Gene Hoffman
5263b46b7d error ci on npm run build fail, fix install-timelord.sh on mac, osx-sign 2021-01-12 17:00:49 -05:00
Gene Hoffman
de5f646ccd
Throw build_windows.ps1 if npm run build fails (#474)
* Try-Catch in powershell, intentionally break npm to test

* Try If $LastExitCode Throw instead

* Clean up error msg, remove known bug
2020-10-16 16:18:05 -07:00
Gene Hoffman
020df916ec Halt the powershell build script on error 2020-10-15 19:48:12 -07:00
Gene Hoffman
4f2bc3aaa2 Correct .spec files 2020-10-01 11:07:12 -07:00
Gene Hoffman
a469b37535 Remove initial-plots.yaml from .specs 2020-10-01 11:07:12 -07:00
Mariano Sorgente
eff85763f7 Fix tests and start with chia wallet 2020-10-01 11:07:12 -07:00
Gene Hoffman
68bffd7158 pyinstaller back to 4.0 - update working spaces 2020-09-14 15:38:55 -07:00
Gene Hoffman
625776bec2 Back to pyinstaller 3.6 2020-09-14 15:38:55 -07:00
Yostra
a98f1fd165 specs 2020-09-14 15:38:55 -07:00
Yostra
c9c8bcc52c include clvm.hex 2020-09-14 15:38:55 -07:00
Gene Hoffman
5d57cc3942 Customize Electron menus, use aiosqlite fork, chiapos to 0.12.26 (#370)
* Initial check in of new menu creation
* aiosqlite by hash ea281b81
* Fix typo in setup.py
* Get version from build scripts
* Update to Mariano's py36 changes
* Test windows w/o Mariano aiosql
* Changes for electron Win
* Add window menu on Win
* Add wiki, faq, etc
* Use quit - upgrade chiapos to 0.12.26
2020-08-24 16:48:39 -07:00
Gene Hoffman
b4da9e11b2 resolve react-scripts security vuln dep 2020-08-18 10:59:45 -07:00
Mariano Sorgente
700eaad9e0 Ms.1.8bugs3 (#326)
* harvester fixes
* Improve networking stability
* Fix wallet shutdown
* Allow chia keys sign and chia keys verify
* Dislpay the public key also
* Retry loading invalid plots, handle drive disconnection
* Confirm before deleting plots
* Improve error message WIP
* XImproved error message for importing keys
* Uncomment process.kill
* Fix merge error with restore backup
* Fixed markdown
* Switch button order, and fix request_peers
* Consolidate styles
* Set ci's to timeout after 60 minutes has elapsed
* plot directories and memory buffer
* Fix flake8
* Update chiapos, chiavdf, chiabip158, and blspy

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
2020-07-27 16:01:18 -07:00
Mariano Sorgente
db17bf3a29 Ms.windows (#306)
Fix chia executable on windows
2020-07-16 13:05:43 -07:00
Mariano Sorgente
0e0b4bfda9 Update build script with chia command instead of create_plots 2020-07-16 13:05:43 -07:00
Mariano Sorgente
04edeb5255 Speed up tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente
a7cd787477 Revert "Remove create plots and check plots"
This reverts commit 2530766eec.
2020-07-16 13:05:43 -07:00
Mariano Sorgente
dd644a20b3 Remove create plots and check plots 2020-07-16 13:05:43 -07:00
Gene Hoffman
b3ff1c1c51 Lower dev dependencies and sync setup.py to dev-reqs.txt (#298)
* Match requirements-dev to setup.py
* new flake8 create_plots.py, keys.py
* setup-python@v2 - build_macos.sh needs setuptools_scm
* Update setuptools_scm, remove isort, autoflake deps
* Switch upload-pypi-source to ubuntu from macos
2020-07-16 13:05:43 -07:00
Gene Hoffman
c3a3fdba1f Integrate GH super linter - fix shell, markdown, python issues (#296)
* Try super-linter
* Fix lint issues, move to separate gh action
* Fix md, shell
* Ignore import-error for python - fix MDs
* Disable standard-js, initial eslint config
* Fix raises, remove prettier for now
* skip pylint no-member check in src/util/byte_types.py line 40
* pyinstaller windows back to INFO
* Disable powershell lint for now.
* Disable css validation temporarily
2020-07-16 13:05:43 -07:00
Gene Hoffman
e8bcaa8d3f Set Windows pyinstaller to log level TRACE 2020-07-16 13:05:43 -07:00
Gene Hoffman
c758df5bc6 set macos pyinstaller to log level warn for potential ci speedup 2020-07-16 13:05:43 -07:00
Gene Hoffman
5e208a45cb Fix uPnP on windows (#292)
* Test windows miniupnpc wheel
* Note the version of miniupnpc in the windows build
2020-07-16 13:05:43 -07:00
Gene Hoffman
d04aedd802 Fix node cache on win - remove mac build debug info 2020-07-16 13:05:43 -07:00
Gene Hoffman
2c00603441 Adding node/pip caching to ci - fix passing HAS_SECRET to build_windows (#291)
* spell HAVE_SECRET right - remove extra Azure Pipelines env var
* Remove debug - cache pip
* Add caching to macos and ubuntu
* Key cache on setup.py - use pip to get cache dir
* Remove macos, ubuntu "os" updates
2020-07-16 13:05:43 -07:00
Gene Hoffman
5c913320c9 Azure should build on tag too, change win secrets test 2020-07-16 13:05:43 -07:00
Gene Hoffman
cc47e7ce43 Build_windows skips code sign verification when secrets not available (#290)
* Test windows codesign workaround
* Enable actions on repo
* pass env variable in build-windows.yml
2020-07-16 13:05:43 -07:00
Gene Hoffman
e2fd81a96e Fix off by one in installer build logic 2020-07-16 13:05:43 -07:00
Gene Hoffman
a5c0ab8d33 Add code signing and time stamping to Windows installer (#280)
* Update cert, update changelog
* Timestamp and verify windows installer
* Update package-lock.json
* It is Chia-Blockchain...
* Add path to signtool.exe
* Remove Start-Process
* use just /t for timestamp
2020-06-08 17:17:48 -07:00
Gene Hoffman
faa8b12b1c Sign with Chia Apple cert on GHA and add Azure Mojave signing (#277)
* Sign with Chia.net signing key
* Codesign on Azure for Mojave
* correct provisionprofile
* Update changelog - rerun Azure signing
2020-06-08 17:17:48 -07:00
Gene Hoffman
31c1ce1e90 Dynamically create installer versions across all ci's (#274)
* Add installer-version.py and CHIA_INSTALLER_VERSION, move env var
* use setuptools_scm to find version
* Move dmg to final_installer dir
* skip npm in install.sh on ci, windows debug
* azure debug, remove hardcoded paths from winstaller.js
* a win (g) and a prayer
* Only Chia.exe
* SemVer means 0.1.6262...

Co-authored-by: Strahinja Markovic <straya@chia.net>
2020-06-08 17:17:48 -07:00
Gene Hoffman
e47747fcaf Durable editbin.exe path on Windows, start to extract installer version global constant (#267)
* remove some debugging in install.sh
* Take 3 w/ Straya spec changes
* Set path to editbin and check - macos env variable?
* Move more version to env vars
* set version back to 0.1.6 in ci runners for now
2020-06-08 17:17:48 -07:00
Gene Hoffman
446ec9a3fd Update MacOS ci, fix wallet error message (#258)
* Build Mac on py 3.7 only, fix wallet error message
2020-06-01 08:56:59 -07:00
Yostra
5e81bac95e Code sign MacOS DMG, fix Mac icons, move to asar on mac install (#257)
* osx code signing in ci
* Install node
* asar and icon
2020-06-01 08:56:59 -07:00
Yostra
bc7e0aee30 typo 2020-06-01 08:56:59 -07:00
Yostra
b13515f622 correct name for check plots 2020-06-01 08:56:59 -07:00
Gene Hoffman
3f2f084cdc Increase chiapos stack size with editbin.exe (#250)
* use mdbuild to path for editbin
* full path to editbin.exe
* because of course it's Start-Process...
2020-06-01 08:56:59 -07:00
Yostra
1a97afda7b editbin 2020-06-01 08:56:59 -07:00
Gene Hoffman
e91812bd03 Clean up miniup-setproctitle 2020-06-01 08:56:59 -07:00
Gene Hoffman
551dc7d73f correct --find-links dir 2020-06-01 08:56:59 -07:00
Gene Hoffman
d7c20c8256 remove exteraneous --add-binary 2020-06-01 08:56:59 -07:00
Gene Hoffman
5848533eb1 Put setproctitle and miniupnpc in the venv 2020-06-01 08:56:59 -07:00
Gene Hoffman
359bfa9acc Add missing msvc dll's (#249)
* Bring in msvcp140.dll and vcruntime140_1.dll
2020-06-01 08:56:59 -07:00
Yostra
334e4bdff6 use relative path: 2020-06-01 08:56:59 -07:00
Gene Hoffman
1465632a48 Simplify build_windows with pip install --no-index --find-links (#248)
* only pip install chia-blockchain
* pip install from local index
2020-06-01 08:56:59 -07:00
Strahinja Markovic
c00cec8863 correct dir 2020-06-01 08:56:59 -07:00
Gene Hoffman
a90f23f1d3 revert src.util.bip39 2020-06-01 08:56:59 -07:00
Gene Hoffman
b3bb2ecede revert websocket_server spec entry. 2020-06-01 08:56:59 -07:00
Gene Hoffman
d6dfd46f1d fix syntax error 2020-06-01 08:56:59 -07:00
Gene Hoffman
899a71eae8 Fix hidden aiohttp 2020-06-01 08:56:59 -07:00
Gene Hoffman
16b6fa7677 add wheel and pep517 to win pyinstall venv. Update npm pkgs 2020-06-01 08:56:59 -07:00
Yostra
0bd849fef1 windows version 2020-06-01 08:56:59 -07:00
Yostra
86aaeaa292 mac version 2020-06-01 08:56:59 -07:00
Yostra
2b761db470 path change 2020-06-01 08:56:59 -07:00
Gene Hoffman
86fb4bec1e Remove duplicate npm installs, typos in ci's 2020-06-01 08:56:59 -07:00
Gene Hoffman
e55a9fa1e5 Clean up installers (#239)
* Clean up win, mac installers
* Build Catalina DMG on GitHub Actions
* gitignore dmg builds
* Manage mac artifacts
* Correct Mac artifact, temp disable azure pytest
* Re-enable pytest on azure pipeline
2020-06-01 08:56:59 -07:00
Yostra
85882f06a5 Breaking changes - fix aggsig, new genesis, new protocol version (#235)
* ouch - fix aggsig merge issues
* Block tools with keychain
* Use load_plots for Prover
* New genesis
* introducer
Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
2020-06-01 08:56:59 -07:00
Yostra
6c2d93ba36 win insaller cleanup 2020-06-01 08:56:59 -07:00
Yostra
2f8c62e9d7 Revert "Windows installer (#232)"
This reverts commit 1cb8840538.
2020-06-01 08:56:59 -07:00
Yostra
8dbaacb883 Windows installer (#232)
* installer

* action

* remove this temporarely

* add logging

* python

* ico

* typo

* config file

* node installer

* remove unused var

* asar flag

* move setup events

* no asar

* closer to root

* move everything closer to home

* Revert "move everything closer to home"

This reverts commit 528083427a.

* Revert "closer to root"

This reverts commit f579fde829.

* long paths

* asa,r but unpack

* build mac on Azure

* azure

* don't use extended public key
2020-06-01 08:56:59 -07:00
Yostra
b964d86a5f Electron react (#226)
* clean react
* add material ui
* add word list
* mnemonic v0
* jeepney backup
* keychain usage
* wallet api
* mnemonic ui
* mnemonics redux state
* handle exceptions correctly
* dashboard
* wallets
* get puzzle hash
* tx history
* sidebar
* start stop wallet node
* use existing mnemonics
* status info
* create cc wallet
* theme should be outside of switch
* create offer
* dbus alternative for linux
* key migration
* don't autocomplete, don't reset simulator db
* reset mnemonics
* Refactor keychain, and key migration
* Implement UI for changing keys
* Removing keys and mnemonic button
* Start making farmer and harvester RPCs
* start rpx for simulator
* Harvester and farmer websocket, and basic UI
* Plot display and deletion
* launch daemon on start
* State changes from full node, harvester, farmer, and full node ui improvements
* split balances in react
* pending change balance
* plotter
* dev config
* maintain connection / retry
* Remove electron-ui, and style fixes
* Better farmer and full node control
* Remove electron ui references
* Uncomment out starting the dameon
* Remove timelord tab, and change full node style
* Clean up new wallet login
* Refactor RPCs
* Now that the GH runner uses python 3.7.7 - use for windows installer
* add balance split to coloured coin wallet
* spendable balance fix
* Import private key from UI fix
* mac build/installer

Co-authored-by: Mariano Sorgente <sorgente711@gmail.com>
Co-authored-by: Lipa Long <lipa@chia.net>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2020-06-01 08:56:59 -07:00