Skip to content

Commit

Permalink
Fixed a bug where BlockProcessor.cs wasn't correctly run as it should.
Browse files Browse the repository at this point in the history
Fixed in M002Payments.cs where Block table Reward column wasn't correctly set as decimal.
Fixes #467
  • Loading branch information
bonesoul committed Oct 2, 2014
1 parent 1986de9 commit ac5d7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CoiniumServ/Blocks/BlockProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public BlockProcessor(IPoolConfig poolConfig, IDaemonClient daemonClient, IStora
_logger = Log.ForContext<BlockProcessor>().ForContext("Component", poolConfig.Coin.Name);

FindPoolAccount();

Active = true;
}

public void Run()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override void Up()
Delete.Column("Id").FromTable("Block"); // delete the 'Id' column as we don't need it anymore.

// add reward column to block table.
Execute.Sql("ALTER TABLE Block ADD Reward DECIMAL NOT NULL AFTER Amount");
Execute.Sql("ALTER TABLE Block ADD Reward DECIMAL(19,5) NOT NULL AFTER Amount");

// add accounted column to block table
Execute.Sql("ALTER TABLE Block ADD Accounted Boolean NOT NULL AFTER Confirmed");
Expand Down

0 comments on commit ac5d7b0

Please sign in to comment.