Add Musicoin and MCIP-3 UBI hardfork. (#6621)
* Add musicoin chain spec. * Add musicoin to parity node * Add musicoin to the wallet * Add i18n for musicoin * Align musicoin chain spec with 1.8, ref #6134 * Update musicoin bootnodes * Prepare MCIP-3 in musicoin chain spec. * Update musicoin chain spec with contract addresses for MCIP-3 * Extend ethash params by MCIP-3 * Fix musicoin chain spec json * Use U256 for block rewards. * Update musicoin registrar * Fix merge leftovers * Update musicoin chain spec for latest master * Bestow MCIP-3 block reward(s). * Update musicoin registry once and for all * Align MCIP-3 block reward with go implementation * Remove mcip3 test chain spec from repository * Update MCIP-3 block rewards * Musicoin homestead transition is at 1_150_000 * Expect mcip3 transtion to be properly defined in chain spec. * Panic handling for mcip to default to regular block rewards if not specified * Giving mcip3 rewards a useful default value. * Fix ethjson tests. * Update musicoin chain spec * Fix tests 0:) * Add musicoin mcip3 era test spec. * Update musicoin chain spec(s) * Add tests for mcip3 era block rewards * Fix tests * Disable byzantium for musicoin * Pass miner reward to the tracer. * Allow modifying blockreward in MCIP-3 transition.
This commit is contained in:
@@ -45,6 +45,12 @@ export default class CurrencySymbolExample extends Component {
|
||||
netChain='expanse'
|
||||
/>
|
||||
</PlaygroundExample>
|
||||
|
||||
<PlaygroundExample name='MUSIC Currency Symbol'>
|
||||
<CurrencySymbol
|
||||
netChain='musicoin'
|
||||
/>
|
||||
</PlaygroundExample>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ import { connect } from 'react-redux';
|
||||
const SYMBOL_ETC = 'ETC';
|
||||
const SYMBOL_ETH = 'ETH';
|
||||
const SYMBOL_EXP = 'EXP';
|
||||
const SYMBOL_MUSIC = 'MUSIC';
|
||||
|
||||
export class CurrencySymbol extends Component {
|
||||
static propTypes = {
|
||||
@@ -45,6 +46,9 @@ export class CurrencySymbol extends Component {
|
||||
case 'expanse':
|
||||
return SYMBOL_EXP;
|
||||
|
||||
case 'musicoin':
|
||||
return SYMBOL_MUSIC;
|
||||
|
||||
default:
|
||||
return SYMBOL_ETH;
|
||||
}
|
||||
|
||||
@@ -74,6 +74,10 @@ describe('ui/CurrencySymbol', () => {
|
||||
expect(render('expanse').text()).equal('EXP');
|
||||
});
|
||||
|
||||
it('renders MUSIC for musicoin', () => {
|
||||
expect(render('musicoin').text()).equal('MUSIC');
|
||||
});
|
||||
|
||||
it('renders ETH as default', () => {
|
||||
expect(render('somethingElse').text()).equal('ETH');
|
||||
});
|
||||
@@ -95,5 +99,9 @@ describe('ui/CurrencySymbol', () => {
|
||||
it('render EXP', () => {
|
||||
expect(render('expanse').instance().renderSymbol()).equal('EXP');
|
||||
});
|
||||
|
||||
it('render MUSIC', () => {
|
||||
expect(render('musicoin').instance().renderSymbol()).equal('MUSIC');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user