Skip to content

Commit

Permalink
migrate transaction tracker on mainnet and stokenet (other networks m…
Browse files Browse the repository at this point in the history
…ight be wiped).
  • Loading branch information
PawelPawelec-RDX committed Jan 24, 2024
1 parent eeacd40 commit 9fef84f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public partial class SupportProtocolUpdate : Migration
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
// Add transaction_trakcer to well known addresses.
migrationBuilder.Sql(@"UPDATE network_configuration SET well_known_addresses = well_known_addresses || '{""TransactionTracker"": ""transactiontracker_tdx_2_1stxxxxxxxxxxtxtrakxxxxxxxxx006844685494xxxxxxxxxxzw7jp""}'::jsonb WHERE network_name = 'stokenet'");
migrationBuilder.Sql(@"UPDATE network_configuration SET well_known_addresses = well_known_addresses || '{""TransactionTracker"": ""transactiontracker_rdx1stxxxxxxxxxxtxtrakxxxxxxxxx006844685494xxxxxxxxxtxtrak""}'::jsonb WHERE network_name = 'mainnet'");

// Support flash transaction type.
migrationBuilder.AlterDatabase()
.Annotation("Npgsql:Enum:ledger_transaction_type", "genesis,user,round_update,flash")
Expand Down

0 comments on commit 9fef84f

Please sign in to comment.