Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorv-2204 committed Jan 26, 2023
1 parent c453ae3 commit ccb42bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/archethic/replication.ex
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ defmodule Archethic.Replication do
- Code approval transactions may trigger the TestNets deployments or hot-reloads
"""
@spec ingest_transaction(Transaction.t(), boolean(), boolean()) :: :ok
def ingest_transaction(tx = %Transaction{}, io_transaction?, self_repair? \\ false) do
# also called from bootstrap
def ingest_transaction(tx = %Transaction{}, io_transaction?, self_repair?) do
TransactionChain.load_transaction(tx)
Crypto.load_transaction(tx)
P2P.load_transaction(tx)
Expand Down
2 changes: 1 addition & 1 deletion test/archethic/bootstrap_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ defmodule Archethic.BootstrapTest do

validated_tx = %{tx | validation_stamp: stamp}
:ok = TransactionChain.write_transaction(validated_tx)
:ok = Replication.ingest_transaction(validated_tx, false)
:ok = Replication.ingest_transaction(validated_tx, false, false)

{:ok, %Ok{}}

Expand Down

0 comments on commit ccb42bc

Please sign in to comment.