325 Commits

Author SHA1 Message Date
topianet
1aaa38c3e4
Update ban.go 2023-12-11 04:22:05 +01:00
topianet
d45103816b
Update add_peer.go 2023-12-11 04:21:22 +01:00
topianet
ea705a2f2a
Update rpc.go 2023-12-11 04:20:24 +01:00
topianet
d8823f9a6f
Update manager.go 2023-12-11 04:19:06 +01:00
topianet
bfaee0804e
Update log.go 2023-12-11 04:17:30 +01:00
topianet
5c3b53da3c
Update verbosedata.go 2023-12-11 04:16:34 +01:00
topianet
b7974a7209
Update utxos_by_addresses.go 2023-12-11 04:15:08 +01:00
topianet
e84178a1d9
Update notificationmanager.go 2023-12-11 04:14:04 +01:00
topianet
7c95ed4e2c
Update log.go 2023-12-11 04:12:23 +01:00
topianet
3554b3a165
Update context.go 2023-12-11 04:11:54 +01:00
topianet
07ff6451bb
Update chain_changed.go 2023-12-11 04:09:19 +01:00
topianet
6ca0591feb
Update protocol.go 2023-12-11 04:07:31 +01:00
topianet
7de2f04b18
Update manager.go 2023-12-11 04:04:42 +01:00
topianet
a44e31beeb
Update log.go 2023-12-11 03:56:41 +01:00
topianet
4fcd731d01
Update protocolerrors.go 2023-12-11 03:55:55 +01:00
topianet
f2b0d08423
Update peer.go 2023-12-11 03:55:14 +01:00
topianet
f4f7a08bfc
Update log.go 2023-12-11 03:52:45 +01:00
topianet
3793b2d528
Update transactions.go 2023-12-11 03:51:34 +01:00
topianet
864660376b
Update shared_requested_transactions.go 2023-12-11 03:50:32 +01:00
topianet
60f4f7c665
Update shared_requested_blocks.go 2023-12-11 03:50:02 +01:00
topianet
6758de5152
Update orphans.go 2023-12-11 03:49:24 +01:00
topianet
0a805f153f
Update network.go 2023-12-11 03:47:59 +01:00
topianet
083db3775b
Update log.go 2023-12-11 03:46:36 +01:00
topianet
632fbf0384
Update flow_context.go 2023-12-11 03:46:04 +01:00
topianet
71f5677854
Update errors.go 2023-12-11 03:38:52 +01:00
topianet
6c10b648d3
Update domain.go 2023-12-11 03:37:54 +01:00
topianet
1d5b6fab7b
Update blocks.go 2023-12-11 03:37:18 +01:00
topianet
25055314cb
Update config.go 2023-12-11 03:35:08 +01:00
topianet
cc95645a8d
Update addresses.go 2023-12-11 03:34:18 +01:00
topianet
86a7669877
Update common.go 2023-12-11 03:33:48 +01:00
topianet
08af68905f
Update domainconverters.go 2023-12-11 03:32:27 +01:00
fabbez
a472605a74
Update addresses.go 2023-12-11 03:07:55 +01:00
fabbez
2b2a19d3f4
Update common.go 2023-12-11 03:05:56 +01:00
fabbez
085d325208
Add files via upload 2023-12-11 03:04:05 +01:00
fabbez
c571596f7b
Add files via upload 2023-12-11 02:49:36 +01:00
Ori Newman
27fdbd9c88
Upgrade to go 1.19 (#2191)
* Upgrade to go 1.19

* fmt
2023-02-27 10:03:11 +02:00
Ori Newman
beee947dda
Fix IBD sync conditions (#2174)
* Fix IBD sync conditions

* Fix syntax

* Fix Sprintf

* Bump version

* On negotiation check only blocks in future of PP

* Only log error and add comment

* Fix comment
2022-11-29 17:18:07 +02:00
Ori Newman
eec6eb9669
Check rule errors when validating blocks with trusted data (#2171) 2022-11-21 23:06:00 +02:00
Ori Newman
9fbfba17b6
Compare blue score with selected tip when checking if a pruning point… (#2169)
* Compare blue score with selected tip when checking if a pruning point proof is needed

* Don't redeclare err

Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
2022-11-20 13:35:00 +02:00
Ori Newman
7d44275eb1
Add found to GetBlock (#2165) 2022-11-16 23:48:05 +02:00
Ori Newman
26c7db251f
Make more checks if status is invalid even if the block exists (#2158)
* Make more checks if status is invalid even if the block exists

* Use HasHeader
2022-10-13 19:22:00 +03:00
Ori Newman
cf4073b773
Remove HF activation code (#2152)
* Remove HF activation code

* Remove unused var totalInputs
2022-10-02 19:17:33 +03:00
Michael Sutton
6a5e7c9e3f
Add IBD error details to the log (#2150) 2022-09-30 13:23:54 +03:00
Ori Newman
7e9b5b9010
Security Patch + HF (#2142)
* HF

* Fix lint
2022-09-21 18:58:32 +03:00
Ori Newman
0838cc8e32
Update virtual on IBD if nearly synced (#2134)
* Update virtual on IBD if nearly synced

* Don't resolve virtual if updateVirtual
2022-09-09 00:52:08 +03:00
Michael Sutton
3f80638c86
Add missing locks to notification listener modifications (#2124) 2022-08-21 01:26:03 +03:00
D-Stacks
eb693c4a86
Mempool: Retrive stable state of the mempool. optimze get mempool entries by addresses (#2111)
* fix mempool accessing, rewrite get_mempool_entries_by_addresses

* fix counter, add verbose

* fmt

* addresses as string

* Define error in case utxoEntry is missing.

* fix error variable to string

* stop tests from failing (see in code comment)

* access both pools in the same state via parameters

* get rid of todo message

* fmt - very important!

* perf: scriptpublickey in mempool, no txscript.

* address reveiw

* fmt fix

* mixed up isorphan bool, pass tests now

* do map preallocation in mempoolbyaddresses

* no proallocation for orphanpool sending.

Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-07-26 23:06:08 +03:00
Michael Sutton
1c9bb54cc2
Crucial fix for the UTXO difference mechanism (#2114)
* Illustrate the bug through prints

* Change consensus API to a single ResolveVirtual call

* nil changeset is not expected when err=nil

* Fixes a deep bug in the resolve virtual process

* Be more defensive at resolving virtual when adding a block

* When finally resolved, set virtual parents properly

* Return nil changeset when nothing happened

* Make sure the block at the split point is reversed to new chain as well

* bump to version 0.12.4

* Avoid locking consensus twice in the common case of adding block with updateVirtual=true

* check err

* Parents must be picked first before set as virtual parents

* Keep the flag for tracking virtual state, since tip sorting perf is high with many tips

* Improve and clarify resolve virtual tests

* Addressing minor review comments

* Fixed a bug in the reported virtual changeset, and modified the test to verify it

* Addressing review comments
2022-07-15 12:35:20 +03:00
D-Stacks
18d000f625
Logger: change log level for "Couldn't find UTXO entry" to debug (and ignore message on orphan transactions) (#2108)
* Logger: change log level for "Couldn't find UTXO entry" to debug

* ignore error for orphans

* continue also if orphans

* check if blocks exist

* safe rpc mode

* limit window size

* verify block status depending on context

* allow a 2 factor gap in expected mergeset size

Co-authored-by: msutton <mikisiton2@gmail.com>
2022-06-29 15:54:40 +03:00
D-Stacks
74a4f927e9
RPC: include orphans into mempool entries (#2046)
* RPC: include orphans into mempool entries

* no need for + 1

* give request option to choose mempool pool(s)

* add to wallet, fix bg

* use orphanpool rpc to test for orphans

* fix fmt

* fix crash when quering orphan pool in get_mempool_entries

* pass the tests, fix fromAppMessage bug

* Update config_test.go

don't think this is needed

* needed for tests to pass

* inverse to transactionpoolfilter, cut down code to two ifs.

* fmt

* update test to true false, forgot one includetransactionpool renaming

* update and simplyfiy get_mempool_entry handler

* comment outdated

* i think we usually use make instead of var.

* Fix some leftovers of includeTransactionPool

Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-06-15 23:46:44 +03:00