Commit Graph

29 Commits

Author SHA1 Message Date
tomFlowee 50af3dc02c [Refactor] rename FastBlock.{h|cpp} -> Block.* 2021-11-02 10:24:58 +01:00
tomFlowee ae78dd0bb8 Update email address 2021-06-20 22:44:44 +02:00
tomFlowee f9a0050220 Update TransactionBuilder / signature type handling
The choice between Schnorr and ECDSA signatures is now per input instead
of once choice for the entire transaction.
2021-05-04 16:57:55 +02:00
tomFlowee fcb648916d Make pubkey follow coding styleguide 2021-04-19 14:48:18 +02:00
TomZ 18a4ca0295 Make txVulcano work on scalenet
I got some UTXOs to test and now got some blocks filled
there, which proves the concept.
Its a bit slow to start (1 -> 20 tx are hardcoded) which was not an
issue if you can call generate() to mine, may be useful to adjust
for scalenet.

Yet, the basis works.
2020-11-22 17:13:53 +01:00
TomZ 91c4f8e75a Try to make txVulcano ready for scalenet 2020-11-21 13:07:57 +01:00
TomZ bdd1609c51 Fix compare-with-self
likely a copy/paste error when I wrote this :)
2020-11-21 10:42:17 +01:00
TomZ 0264b6aac4 Less noisy logs
Now it takes less than a second to generate 1MB of transactions, we log
progress only once every 10 MB.
2020-10-26 22:03:25 +01:00
TomZ 16743f95bb Move vulcano wallet to app-dir
I'd say that leaving it in the current dir just didn't make much
sense...
2020-10-26 21:53:49 +01:00
TomZ 5d8ac92e7b Use the async submit transaction new API call. 2020-10-26 18:21:52 +01:00
TomZ 79e4974d19 Port API getblock::filter to use script-hash
The API call for GetBlock has a filter-on-address functionality which is
now ported to no longer use ripe160 addresses but instead uses output-
script hashes.
This avoids problems for transactions not using p2pkh and generally is a
cleaner solution.

This also adds a unit test to test this feature.
2019-10-20 22:12:09 +02:00
TomZ 00814e24f9 API: Use hash of outscript instead of address
The usage of a ripe160 for bitcoin addresses in the API and in the
Indexer loses some info, specifically what kind of script it is.
Additionally not all types of scripts fit this mold. At best that means
its not future-proof.

This adds a method to the API in order to select from a Tx the hashed
outscript (thats singlehashed sha256) and refactor the address indexer
to use that instead of the ripe160 address.

The API enums broke a little, so I used the opportunity to break it a
lot and clean up the enums in order to make them more future-proof.
But, yeah, software from before this commit is protocol incompatible
with software after this commit.
2019-10-16 22:57:50 +02:00
TomZ b719a4904c Make txVulcano start a bit slower and report more
Start with a couple of 20MB blocks and while generating
put in the log a line like;
    Block still 7 MB from goal
2019-06-15 19:34:57 +02:00
TomZ 714c418ff5 Port txVulcano to use the FloweeServiceApplication 2019-05-08 13:18:09 +02:00
TomZ 82a8e137bb API reviews
Rename 'RawTransaction' to 'LiveTransactions'
Review the AddressMonitorService.
Cleanup and remove some unused items (but keep binary compatible).
2019-05-06 20:13:10 +02:00
TomZ 78219d5bba Make the indexer-cli and indexer interact well
This adds lots of little things;
* Add GetTransaction API call
* I refactored the GetBlock API a little to reuse code.
* a new 'Version' API call for the hub
* API for the logging manager, so we can set a default
  setup with just C++-APIs
* various (usability) fixes in the FloweeServiceApplication
* Binding to localhost attempts to bind to both IPv4 and v6
* Print the actual transaction hex from indexer-cli (which really
  is just a testing app)
2019-04-10 20:52:04 +02:00
TomZ 5939de8ef0 Move API protocol definition to interfaces dir.
It makes no sense to include the API "library" just to use
the header file.
2019-03-29 21:07:28 +01:00
TomZ 69f1c3c129 Fix various small items in txVulcano. 2019-03-28 20:23:47 +01:00
TomZ 6524acbb96 Final TODOs for the APIProtocol review done 2019-03-28 20:23:41 +01:00
TomZ 209e955a11 fix some naming TODOs 2019-03-28 10:23:06 +01:00
TomZ e2ad40b719 Rename some API items for consistency 2019-03-27 20:25:07 +01:00
TomZ a628db675a Cleanup and work on the API tags.
Make things more foolproof by having similar items in different namespaces
use the same number.
Remove APIs for the wallet as that is not a shipped component of the Hub
2019-03-27 20:24:31 +01:00
TomZ c8108f387c Drop API login requirement and api-cookie argument 2019-03-27 18:55:13 +01:00
TomZ 778155cf81 Set tx count by default to 5 million
Also avoid premature optimisation.
2019-03-27 18:55:13 +01:00
TomZ df92847de0 Various bugfixes in txVulcano app 2019-03-24 21:37:21 +01:00
TomZ 309616a57d Move processing of big blocks into its own thread.
The txVulcano wallet is currently really not fast,
so this code made the first mistake of network programming;
a big task was handled blocking the network handling.
The workerthread eventqueue is now used for this.
2019-03-19 21:47:28 +01:00
TomZ 98075819c7 Make tx-generation work more reliable.
As we don't intent to have a perfect wallet on this side, the
transactions failing to validate on the Node is a direct effect and
expected and Ok. As such the client is now more tolerant.
2019-03-19 21:46:34 +01:00
TomZ 9e0ea72bb8 Make txVulcano have user-defined limits
So we generate blocks in pre-defined sizes and we can stop after N
transactions have been created.
2019-03-18 13:45:57 +01:00
TomZ 857315c743 Introduce new app txVulcano
This is a partial app which has as goal to generate transactions
and fill up blocks. A needed tool to test bigger blocks.

Secondairy goal is to test the Hub APIs in actual production
setting.
2019-03-17 22:52:09 +01:00