Cranky Coin is a simple blockchain, cryptocurrency, wallet implementation

cranklin, updated 🕥 2022-06-03 22:43:24

Cranky Coin

Build Status

Cranky Coin is a simple blockchain, cryptocurrency, wallet implementation

Getting Started

```

apt install python3-pip

pip3 install virtualenv

virtualenv -p python3 venv

. venv/bin/activate

pip install -r requirements.txt

pip install -r requirements-dev.txt

```

Generating a wallet

```

python run.py client

Cranky Coin (CRNK) wallet > publickey *copy your public key* Cranky Coin (CRNK) wallet > privatekey ``` copy your private key

Running a full node ``` Cranky Coin (CRNK) wallet > quit

python ./tools/encrypt.py

*enter a secure passphrase* Choose a passphrase: Re-enter your passphrase: *enter your private key* Secret: Encrypted private key: ``` copy your encrypted private key

edit config/config.yaml and populate the fields in the user section

```

python run.py full

Cranky Coin (CRNK) full node > help ```

Running a mining node Cranky Coin (CRNK) full node > mine start Cranky Coin (CRNK) full node > mine stop

Issues

Bump bottle from 0.12.19 to 0.12.20

opened on 2022-06-03 22:43:24 by dependabot[bot]

Bumps bottle from 0.12.19 to 0.12.20.

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/cranklin/crankycoin/network/alerts).

Bump ipython from 4.2.0 to 7.16.3

opened on 2022-01-21 19:41:19 by dependabot[bot]

Bumps ipython from 4.2.0 to 7.16.3.

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/cranklin/crankycoin/network/alerts).

[Ubuntu/Python 3.6] Can't mine with full node

opened on 2018-06-11 18:28:43 by Aareon

py File "/home/user/Desktop/crankycoin/crankycoin/repository/blockchain.py", line 236, in get_reward for i in range(1, ((height, / self.HALVING_FREQUENCY) + 1)): TypeError: 'float' object cannot be interpreted as an integer

Cannot run full node

opened on 2018-06-07 22:19:27 by Aareon

```py (venv) PS C:\Users\User\crankycoin> py .\run.py full

full node starting...

DEBUG:crankycoin:queue process starting... DEBUG:crankycoin:worker process(es) starting... Traceback (most recent call last): File ".\run.py", line 218, in main(sys.argv[1:]) File ".\run.py", line 212, in main full() File ".\run.py", line 119, in full full_node.start() File "C:\Users\User\crankycoin\crankycoin\node.py", line 79, in start wp.start() File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'ConfigDict.init..' [INFO/MainProcess] process shutting down [DEBUG/MainProcess] running all "atexit" finalizers with priority >= 0 [INFO/MainProcess] calling join() for process Process-1 Traceback (most recent call last): File "", line 1, in [INFO/Process-1] child process calling self.run() File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\spawn.py", line 105, in spawn_main exitcode = _main(fd) File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) EOFError: Ran out of input [INFO/Process-2] process shutting down [DEBUG/Process-2] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-2] running the remaining "atexit" finalizers [INFO/Process-1] process shutting down [DEBUG/Process-1] running all "atexit" finalizers with priority >= 0 [DEBUG/Process-1] running the remaining "atexit" finalizers Process Process-1: Traceback (most recent call last): File "C:\Users\User\crankycoin\crankycoin\services\queue.py", line 18, in start_queue frontend.bind(cls.QUEUE_BIND_IN) File "zmq\backend\cython\socket.pyx", line 547, in zmq.backend.cython.socket.Socket.bind File "zmq\backend\cython\checkrc.pxd", line 25, in zmq.backend.cython.checkrc._check_rc zmq.error.ZMQError: Protocol not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\multiprocessing\process.py", line 93, in run self._target(self._args, *self._kwargs) File "C:\Users\User\crankycoin\crankycoin\services\queue.py", line 26, in start_queue logger.error("could not start queue: %s", e.message) AttributeError: 'ZMQError' object has no attribute 'message' [INFO/Process-1] process exiting with exitcode 1 [DEBUG/MainProcess] running the remaining "atexit" finalizers ```

Node operation mode not specified

opened on 2018-04-28 21:07:54 by felicedev

Hello, i try to run crankycoin, i do python run.py but i receive this message "Node operation mode not specified", what i need to do?

Add more tests, add Travis CI

opened on 2018-01-24 20:16:43 by Aareon

Among those two suggestions, perhaps we could consider migrating to sockets rather than HTTP requests? Major performance improvements are possible by doing so, as sockets are far more efficient than HTTP.

Eddie Kim

BTC: 1CrANKo4jXDaromxFJZFJb3dcbu8icFPmJ //////////////////////////////////////// ETH: 0x649283Bd1eC11eCb51B349867f99c0bEAE96DCf8

GitHub Repository