Skip to content

Commit

Permalink
Move NBitcoin to namespace Blockcore.NBitcoin (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony authored May 15, 2023
1 parent 3d8dc3a commit d6dd45b
Show file tree
Hide file tree
Showing 1,057 changed files with 1,557 additions and 1,697 deletions.
1 change: 0 additions & 1 deletion src/Blockcore/Base/BaseFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using Blockcore.Utilities.Store;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NBitcoin;

[assembly: InternalsVisibleTo("Blockcore.Tests")]
[assembly: InternalsVisibleTo("Blockcore.Tests.Common")]
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Base/ChainState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Blockcore.Consensus.Chain;
using NBitcoin;

namespace Blockcore.Base
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Base/Deployments/BIP9Deployments.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using NBitcoin;
using Blockcore.NBitcoin;

namespace Blockcore.Base.Deployments
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Base/Deployments/DeploymentFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Blockcore.Consensus.Chain;
using Blockcore.Consensus.ScriptInfo;
using Blockcore.Consensus.TransactionInfo;
using NBitcoin;
using Blockcore.NBitcoin;

namespace Blockcore.Base.Deployments
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Base/Deployments/NodeDeployments.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Blockcore.Consensus.Chain;
using Blockcore.Networks;
using Blockcore.Utilities;
using NBitcoin;

namespace Blockcore.Base.Deployments
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Base/Deployments/ThresholdConditionCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using Blockcore.Base.Deployments.Models;
using Blockcore.Consensus;
using Blockcore.Consensus.Chain;
using Blockcore.NBitcoin;
using Blockcore.Utilities;
using NBitcoin;

namespace Blockcore.Base.Deployments
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Base/InitialBlockDownloadState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Blockcore.Consensus;
using Blockcore.Consensus.Checkpoints;
using Blockcore.Interfaces;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Base
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Base/InvalidBlockHashStore.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using Blockcore.NBitcoin;
using Blockcore.Utilities;
using NBitcoin;

namespace Blockcore.Base
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Base/TimeSyncBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Base
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Base/TipsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Blockcore.Utilities;
using Blockcore.Utilities.Store;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Base
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/BlockPulling/AssignedDownload.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using Blockcore.Consensus.Chain;
using NBitcoin;

namespace Blockcore.BlockPulling
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/BlockPulling/BlockPuller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
using Blockcore.Configuration;
using Blockcore.Consensus.BlockInfo;
using Blockcore.Consensus.Chain;
using Blockcore.NBitcoin;
using Blockcore.P2P.Peer;
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.BlockPulling
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/BlockPulling/BlockPullerBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
using System.Threading.Tasks;
using Blockcore.Consensus.Chain;
using Blockcore.Interfaces;
using Blockcore.NBitcoin;
using Blockcore.P2P.Peer;
using Blockcore.P2P.Protocol;
using Blockcore.P2P.Protocol.Behaviors;
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.BlockPulling
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/BlockPulling/DownloadJob.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using Blockcore.Consensus.Chain;
using NBitcoin;

namespace Blockcore.BlockPulling
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Configuration/DataFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Blockcore.Consensus.BlockInfo;
using Blockcore.Utilities;
using Blockcore.Utilities.Store;
using NBitcoin;

namespace Blockcore.Configuration
{
Expand Down
3 changes: 1 addition & 2 deletions src/Blockcore/Configuration/NodeSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
using Blockcore.Builder.Feature;
using Blockcore.Configuration.Logging;
using Blockcore.Configuration.Settings;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;
using NBitcoin.Protocol;
using NLog.Extensions.Logging;

namespace Blockcore.Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Blockcore.Utilities;
using Blockcore.Utilities.Extensions;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Configuration.Settings
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Configuration/Settings/ConsensusSettings.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Text;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Configuration.Settings
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Configuration/TextFileConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Blockcore.NBitcoin;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Configuration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Blockcore.P2P.Protocol.Behaviors;
using Blockcore.P2P.Protocol.Payloads;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Connection.Broadcasting
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
using System.Threading.Tasks;
using Blockcore.Consensus.TransactionInfo;
using Blockcore.Interfaces;
using Blockcore.NBitcoin;
using Blockcore.P2P.Peer;
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Signals;
using Blockcore.Utilities;
using ConcurrentCollections;
using NBitcoin;

namespace Blockcore.Connection.Broadcasting
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Blockcore.Consensus.TransactionInfo;
using Blockcore.Interfaces;
using Blockcore.Utilities;
using NBitcoin;

namespace Blockcore.Connection.Broadcasting
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Connection/ConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
using Blockcore.Configuration.Settings;
using Blockcore.Consensus;
using Blockcore.Interfaces;
using Blockcore.NBitcoin.Protocol;
using Blockcore.Networks;
using Blockcore.P2P;
using Blockcore.P2P.Peer;
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Utilities;
using Blockcore.Utilities.Extensions;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Connection
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Connection/DropNodesBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Blockcore.P2P.Protocol.Payloads;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Connection
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Connection/IConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Blockcore.P2P;
using Blockcore.P2P.Peer;
using Blockcore.P2P.Protocol.Payloads;
using NBitcoin;

namespace Blockcore.Connection
{
Expand Down
1 change: 0 additions & 1 deletion src/Blockcore/Consensus/BlockDownloadRequest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Collections.Generic;
using Blockcore.Consensus.Chain;
using NBitcoin;

namespace Blockcore.Consensus
{
Expand Down
6 changes: 3 additions & 3 deletions src/Blockcore/Consensus/BlockInfo/Block.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using System.IO;
using System.Linq;
using Blockcore.Consensus.TransactionInfo;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.DataEncoders;
using Blockcore.NBitcoin.Formatters;
using Blockcore.Networks;
using NBitcoin;
using NBitcoin.DataEncoders;
using NBitcoin.Formatters;
using Newtonsoft.Json.Linq;

namespace Blockcore.Consensus.BlockInfo
Expand Down
6 changes: 3 additions & 3 deletions src/Blockcore/Consensus/BlockInfo/BlockHeader.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Blockcore.Consensus.Chain;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.BouncyCastle.math;
using Blockcore.NBitcoin.Crypto;
using Blockcore.Networks;
using NBitcoin;
using NBitcoin.BouncyCastle.Math;
using NBitcoin.Crypto;

namespace Blockcore.Consensus.BlockInfo
{
Expand Down
4 changes: 2 additions & 2 deletions src/Blockcore/Consensus/BlockInfo/BlockSignature.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Linq;
using NBitcoin;
using NBitcoin.DataEncoders;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.DataEncoders;

namespace Blockcore.Consensus.BlockInfo
{
Expand Down
8 changes: 4 additions & 4 deletions src/Blockcore/Consensus/BlockInfo/BlockStake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using System.Reflection;
using Blockcore.Consensus.Chain;
using Blockcore.Consensus.TransactionInfo;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.Crypto;
using Blockcore.NBitcoin.DataEncoders;
using Blockcore.NBitcoin.Protocol;
using Blockcore.Networks;
using NBitcoin;
using NBitcoin.Crypto;
using NBitcoin.DataEncoders;
using NBitcoin.Protocol;

namespace Blockcore.Consensus.BlockInfo
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/BlockInfo/ProvenBlockHeader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Blockcore.Consensus.TransactionInfo;
using NBitcoin;
using Blockcore.NBitcoin;

namespace Blockcore.Consensus.BlockInfo
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/Chain/ChainIndexer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using NBitcoin;

namespace Blockcore.Consensus.Chain
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/Chain/ChainRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Consensus.Chain
{
Expand Down
3 changes: 2 additions & 1 deletion src/Blockcore/Consensus/Chain/ChainStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using Blockcore.Consensus.BlockInfo;
using NBitcoin;
using Blockcore.NBitcoin;
using IBitcoinSerializable = Blockcore.NBitcoin.IBitcoinSerializable;

namespace Blockcore.Consensus.Chain
{
Expand Down
4 changes: 2 additions & 2 deletions src/Blockcore/Consensus/Chain/ChainedHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using Blockcore.Consensus.BlockInfo;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.BouncyCastle.math;
using Blockcore.Networks;
using NBitcoin;
using NBitcoin.BouncyCastle.Math;

namespace Blockcore.Consensus.Chain
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/Chain/ChainedHeaderTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using Blockcore.Consensus.BlockInfo;
using Blockcore.Consensus.Checkpoints;
using Blockcore.Consensus.Validators;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using Microsoft.Extensions.Logging;
using NBitcoin;

namespace Blockcore.Consensus.Chain
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/Checkpoints/CheckpointInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NBitcoin;
using Blockcore.NBitcoin;

namespace Blockcore.Consensus.Checkpoints
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blockcore/Consensus/Checkpoints/Checkpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using Blockcore.Configuration.Settings;
using Blockcore.NBitcoin;
using Blockcore.Networks;
using Blockcore.Utilities;
using NBitcoin;

namespace Blockcore.Consensus.Checkpoints
{
Expand Down
4 changes: 2 additions & 2 deletions src/Blockcore/Consensus/Consensus.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Blockcore.Base.Deployments;
using NBitcoin;
using NBitcoin.BouncyCastle.Math;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.BouncyCastle.math;

namespace Blockcore.Consensus
{
Expand Down
4 changes: 2 additions & 2 deletions src/Blockcore/Consensus/ConsensusFactory.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Reflection;
using Blockcore.Consensus.BlockInfo;
using Blockcore.Consensus.TransactionInfo;
using NBitcoin;
using NBitcoin.DataEncoders;
using Blockcore.NBitcoin;
using Blockcore.NBitcoin.DataEncoders;

namespace Blockcore.Consensus
{
Expand Down
Loading

0 comments on commit d6dd45b

Please sign in to comment.