Model: nilcars/bitcoin_bitcoin_model
Author: nilcars
Pipeline: text-classification
Library: setfit
Tags: setfit, safetensors, mpnet, sentence-transformers, text-classification, generated_from_setfit_trainer, arxiv:2209.11055, base_model:sentence-transformers/all-mpnet-base-v2, base_model:finetune:sentence-transformers/all-mpnet-base-v2, region:us
Base models (finetune): id: sentence-transformers/all-mpnet-base-v2
Card metadata: base_model: sentence-transformers/all-mpnet-base-v2
library_name: setfit
metrics: accuracy
pipeline_tag: text-classification
tags: setfit, sentence-transformers, text-classification, generated_from_setfit_trainer
widget: [brainstorm] Improving `makeseeds.py` 
A. Filtering hosts with multiple ports can be removed IMO:

https://github.com/bitcoin/bitcoin/blob/c44e734dca64a15fae92255a5d848c04adaad2fa/contrib/seeds/makeseeds.py#L215


B. Tor v3 can also be included in the results.

C. Recent observation which can be confirmed with:

```
wget https://gitlab.com/api/v4/projects/33695681/packages/generic/nrich/0.1.1/nrich_0.1.1_amd64.deb
sudo dpkg -i nrich_0.1.1_amd64.deb
host -t a seed.bitcoin.sipa.be | sed -e 's/seed.bitcoin.sipa.be has address //g' | nrich -
```

Possible reasons for vulnerable machines used for bitcoin nodes:

1. False positives
2. Users not aware or don't care
3. Attackers prefer using these for better results
4. Honeypots
5. Other reasons

Leaving 1 which won't be true for all the results, filtering such nodes in `makeseeds.py` should make sense. Below is an example for one IP copied from [`suspicious_hosts.txt`](https://github.com/bitcoin/bitcoin/blob/master/contrib/seeds/suspicious_hosts.txt)


```python
ip = '88.198.17.7'

url = 'https://internetdb.shodan.io/' + ip
response = requests.get(url)

if response.text.find('CVE') != -1:
    print('vulnerable')
```, Add "walletpassphrasechange" command in bitcoin-wallet.exe This is an underrated useful tool. Dear devs, please add this "feature". Thanks., qa: Intermittent failure in feature_segwit.py --descriptors https://api.cirrus-ci.com/v1/task/5763159330914304/logs/ci.log
```
5/238 - feature_segwit.py --descriptors failed, Duration: 11 s

stdout:
2022-03-16T18:38:33.242000Z TestFramework (INFO): Initializing test directory /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_🏃_20220316_183814/feature_segwit_225
2022-03-16T18:38:39.177000Z TestFramework (INFO): Verify sigops are counted in GBT with pre-BIP141 rules before the fork
2022-03-16T18:38:43.168000Z TestFramework (INFO): Verify witness txs cannot be mined before the fork
2022-03-16T18:38:43.200000Z TestFramework (INFO): Verify unsigned p2sh witness txs without a redeem script are invalid
2022-03-16T18:38:43.630000Z TestFramework (ERROR): JSONRPC error
Traceback (most recent call last):
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
    self.run_test()
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/feature_segwit.py", line 210, in run_test
    self.generate(self.nodes[0], 4)  # blocks 428-431
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 639, in generate
    blocks = generator.generate(*args, invalid_call=False, **kwargs)
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 303, in generate
    return self.generatetoaddress(nblocks=nblocks, address=self.get_deterministic_priv_key().address, maxtries=maxtries, **kwargs)
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/test_node.py", line 311, in generatetoaddress
    return self.__getattr__('generatetoaddress')(*args, **kwargs)
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/coverage.py", line 49, in __call__
    return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
  File "/tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/test_framework/authproxy.py", line 144, in __call__
    raise JSONRPCException(response['error'], status)
test_framework.authproxy.JSONRPCException: CreateNewBlock: TestBlockValidity failed: unexpected-witness, ContextualCheckBlock : unexpected witness data found (-1)
2022-03-16T18:38:43.682000Z TestFramework (INFO): Stopping nodes
2022-03-16T18:38:43.856000Z TestFramework (WARNING): Not cleaning up dir /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_🏃_20220316_183814/feature_segwit_225
2022-03-16T18:38:43.856000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_🏃_20220316_183814/feature_segwit_225/test_framework.log
2022-03-16T18:38:43.866000Z TestFramework (ERROR): 
2022-03-16T18:38:43.866000Z TestFramework (ERROR): Hint: Call /tmp/cirrus-ci-build/ci/scratch/build/bitcoin-i686-pc-linux-gnu/test/functional/combine_logs.py '/tmp/cirrus-ci-build/ci/scratch/test_runner/test_runner_₿_🏃_20220316_183814/feature_segwit_225' to consolidate all logs
2022-03-16T18:38:43.866000Z TestFramework (ERROR): 
2022-03-16T18:38:43.866000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2022-03-16T18:38:43.867000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
2022-03-16T18:38:43.867000Z TestFramework (ERROR): 
```, Rpc not working on 0.17.1 ```
curl --user test:test --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
curl: (7) Failed to connect to 127.0.0.1 port 8332: Connection refused

```
But version 0.16 works , guix: Prints "g++: not found" when building depends Steps to reproduce: Start a guix build on a system without gcc.


```
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin18/native/bin/clang++': No such file or directory
Found macOS SDK at '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/SDKs/Xcode-11.3.1-11C505-extracted-SDK-with-libcxx-headers', using...
make: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++': No such file or directory
env: '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends/x86_64-apple-darwin/native/bin/clang++': No such file or directory
make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
make[1]: Entering directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
/bin/sh: 1: gcc: not found
/bin/sh: 1: gcc: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: g++: not found
/bin/sh: 1: x86_64-w64-mingw32-gcc: not found
/bin/sh: 1: x86_64-w64-mingw32-gcc: not found
/bin/sh: 1: x86_64-w64-mingw32-g++: not found
/bin/sh: 1: x86_64-w64-mingw32-g++: not found
make[1]: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
make: Leaving directory '/home/micap/temp/scratch/guix/bitcoin/bitcoin/depends'
INFO: Building commit a4903f747ccd for platform triple x86_64-linux-gnu:
inference: yes
Likes: 0 | All-time downloads: 10
Created: 2024-06-24 10:08:13